lease

package
v1.86.4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "lease"

ControllerName is the name of the controller.

Variables

This section is empty.

Functions

func ObjectName

func ObjectName(nodeName string) string

ObjectName returns the name of the Lease object based on the node name.

Types

type Reconciler

type Reconciler struct {
	Client               client.Client
	LeaseDurationSeconds int32
	Namespace            string
	Clock                clock.Clock
}

Reconciler creates a lease in the kube-system namespace of the shoot.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager, nodePredicate predicate.Predicate) error

AddToManager adds the lease controller with the default Options to the manager.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile renews the heartbeat lease resource.

Jump to

Keyboard shortcuts

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