endpointgc

package
v1.15.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelOutcome indicates whether the outcome of the operation was successful or not
	LabelOutcome = "outcome"

	// LabelValueOutcomeSuccess is used as a successful outcome of an operation
	LabelValueOutcomeSuccess = "success"

	// LabelValueOutcomeFail is used as an unsuccessful outcome of an operation
	LabelValueOutcomeFail = "fail"
)

Variables

View Source
var Cell = cell.Module(
	"k8s-endpoints-gc",
	"Cilium endpoints garbage collector",

	cell.Invoke(registerGC),

	cell.Metric(NewMetrics),
)

Cell is a cell that implements a periodic and one-off Cilium endpoints garbage collector. The GC loops through all the Cilium Endpoints in the cluster and validates which one of them should be deleted. Then deleting all that should be deleted.

Functions

This section is empty.

Types

type GC

type GC struct {
	// contains filtered or unexported fields
}

GC represents the Cilium endpoints periodic and one-off GC.

func (*GC) Start

func (g *GC) Start(ctx cell.HookContext) error

func (*GC) Stop

func (g *GC) Stop(ctx cell.HookContext) error

type Metrics

type Metrics struct {
	EndpointGCObjects metric.Vec[metric.Counter]
}

func NewMetrics

func NewMetrics() *Metrics

type SharedConfig

type SharedConfig struct {
	// Interval is the interval between attempts of the CEP GC controller.
	// Note that only one node per cluster should run this, and most iterations
	// will simply return.
	Interval time.Duration

	// DisableCiliumEndpointCRD disables the use of CiliumEndpoint CRD
	DisableCiliumEndpointCRD bool
}

SharedConfig contains the configuration that is shared between this module and others. It is a temporary solution meant to avoid polluting this module with a direct dependency on global operator and daemon configurations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL