Documentation ¶
Index ¶
Constants ¶
View Source
const ControllerName = "node-agent-reconciliation-delay"
ControllerName is the name of the controller.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { TargetClient client.Client Config config.NodeAgentReconciliationDelayControllerConfig // contains filtered or unexported fields }
Reconciler manages the node-agent.gardener.cloud/reconciliation-delay annotation on nodes.
func (*Reconciler) AddToManager ¶
AddToManager adds Reconciler to the given manager.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(reconcileCtx context.Context, _ reconcile.Request) (reconcile.Result, error)
Reconcile computes a time.Duration that can be used to delay reconciliations by using a simple linear mapping approach based on the indices of the nodes in the list of all nodes in the cluster. This way, the delays of all instances of gardener-node-agent are distributed evenly.
Click to show internal directories.
Click to hide internal directories.