lease

package
v0.27.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 12 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Run(ctx context.Context)
}

Controller manages creating and renewing the lease for this component (kube-apiserver, kubelet, etc.)

func NewController

func NewController(clock clock.Clock, client clientset.Interface, holderIdentity string, leaseDurationSeconds int32, onRepeatedHeartbeatFailure func(), renewInterval time.Duration, leaseName, leaseNamespace string, newLeasePostProcessFunc ProcessLeaseFunc) Controller

NewController constructs and returns a controller

type ProcessLeaseFunc

type ProcessLeaseFunc func(*coordinationv1.Lease) error

ProcessLeaseFunc processes the given lease in-place

Jump to

Keyboard shortcuts

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