agentreconciliationdelay

package
v1.98.3 Latest Latest
Warning

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

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

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

func (r *Reconciler) AddToManager(mgr manager.Manager, targetCluster cluster.Cluster) error

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.

Jump to

Keyboard shortcuts

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