Documentation ¶
Index ¶
- Constants
- Variables
- func CleanupLegacyPriorityClasses(ctx context.Context, seedClient client.Client) error
- func NewCareReconciler(clientMap clientmap.ClientMap, ...) reconcile.Reconciler
- func NewExtensionCheckReconciler(gardenClient client.Client, nowFunc func() metav1.Time) reconcile.Reconciler
- func NewLeaseReconciler(clientMap clientmap.ClientMap, healthManager healthz.Manager, ...) reconcile.Reconciler
- type Controller
- type HealthCheck
- type NewHealthCheckFunc
Constants ¶
const ControllerName = "seed"
ControllerName is the name of this controller.
Variables ¶
var ( // NewSeed is used to create a new `operation.Operation` instance. NewSeed = defaultNewSeedObjectFunc // NewHealthCheck is used to create a new Health check instance. NewHealthCheck = defaultNewHealthCheck )
Functions ¶
func CleanupLegacyPriorityClasses ¶ added in v1.53.0
CleanupLegacyPriorityClasses deletes reversed-vpn-auth-server, fluent-bit and loki priority classes
func NewCareReconciler ¶ added in v1.47.0
func NewCareReconciler( clientMap clientmap.ClientMap, config gardenletconfig.SeedCareControllerConfiguration, ) reconcile.Reconciler
NewCareReconciler returns an implementation of reconcile.Reconciler which is dedicated to execute care operations
func NewExtensionCheckReconciler ¶ added in v1.30.0
func NewExtensionCheckReconciler(gardenClient client.Client, nowFunc func() metav1.Time) reconcile.Reconciler
NewExtensionCheckReconciler creates a new reconciler that maintains the ExtensionsReady condition of Seeds according to the observed changes to ControllerInstallations.
func NewLeaseReconciler ¶ added in v1.30.0
func NewLeaseReconciler( clientMap clientmap.ClientMap, healthManager healthz.Manager, nowFunc func() metav1.Time, config *config.GardenletConfiguration, ) reconcile.Reconciler
NewLeaseReconciler creates a new reconciler that periodically renews the gardenlet's lease.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller controls Seeds.
func NewSeedController ¶
func NewSeedController( ctx context.Context, log logr.Logger, clientMap clientmap.ClientMap, healthManager healthz.Manager, imageVector imagevector.ImageVector, componentImageVectors imagevector.ComponentImageVectors, identity *gardencorev1beta1.Gardener, clientCertificateExpirationTimestamp *metav1.Time, config *config.GardenletConfiguration, recorder record.EventRecorder, ) ( *Controller, error, )
NewSeedController takes a Kubernetes client for the Garden clusters <k8sGardenClient>, a struct holding information about the acting Gardener, a <seedInformer>, and a <recorder> for event recording. It creates a new Gardener controller.
type HealthCheck ¶ added in v1.47.0
type HealthCheck interface {
CheckSeed(ctx context.Context, condition []gardencorev1beta1.Condition, thresholdMappings map[gardencorev1beta1.ConditionType]time.Duration) []gardencorev1beta1.Condition
}
HealthCheck is an interface used to perform health checks.
type NewHealthCheckFunc ¶ added in v1.47.0
type NewHealthCheckFunc func(seed *gardencorev1beta1.Seed, client client.Client) HealthCheck
NewHealthCheckFunc is a function used to create a new instance for performing health checks.