Documentation
¶
Overview ¶
Package leaderelection wraps k8s.io/client-go/tools/leaderelection with a simpler API. It's derived from https://github.com/kubernetes-csi/csi-lib-utils/tree/v0.11.0/leaderelection
Index ¶
- Constants
- func New(clientset kubernetes.Interface, lockName string, ...) *leaderElection
- type Option
- func Context(ctx context.Context) Option
- func HealthCheckTimeout(timeout time.Duration) Option
- func Identity(identity string) Option
- func LeaseDuration(leaseDuration time.Duration) Option
- func Namespace(namespace string) Option
- func RenewDeadline(renewDeadline time.Duration) Option
- func RetryPeriod(retryPeriod time.Duration) Option
- type Server
Constants ¶
View Source
const ( // HealthCheckerAddress is the address at which the leader election health // checker reports status. // The caller sidecar should document this address in appropriate flag // descriptions. HealthCheckerAddress = "/healthz/leader-election" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(l *leaderElection)
Option implements functional options for New.
func HealthCheckTimeout ¶
func LeaseDuration ¶
func RenewDeadline ¶
func RetryPeriod ¶
Click to show internal directories.
Click to hide internal directories.