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), metrics.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.
type Metrics ¶
func NewMetrics ¶
func NewMetrics() *Metrics
type SharedConfig ¶
type SharedConfig struct { // Note that only one node per cluster should run this, and most iterations // will simply return. Interval time.Duration 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.
Click to show internal directories.
Click to hide internal directories.