Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultHealthCheckTimeout = 20 * time.Second // 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 ¶
func NewLeaderElection ¶
func NewLeaderElection(clientset kubernetes.Interface, lockName string, runFunc func(ctx context.Context)) *leaderElection
NewLeaderElection returns the default & preferred leader election type
func NewLeaderElectionWithLeases ¶
func NewLeaderElectionWithLeases(clientset kubernetes.Interface, lockName string, runFunc func(ctx context.Context)) *leaderElection
NewLeaderElectionWithLeases returns an implementation of leader election using Leases
Types ¶
Click to show internal directories.
Click to hide internal directories.