Documentation
¶
Index ¶
- Constants
- func NewLeaderElection(clientset kubernetes.Interface, lockName string, ...) *leaderElection
- func NewLeaderElectionWithConfigMaps(clientset kubernetes.Interface, lockName string, ...) *leaderElection
- func NewLeaderElectionWithEndpoints(clientset kubernetes.Interface, lockName string, ...) *leaderElection
- func NewLeaderElectionWithLeases(clientset kubernetes.Interface, lockName string, ...) *leaderElection
- type Server
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 NewLeaderElectionWithConfigMaps ¶
func NewLeaderElectionWithConfigMaps(clientset kubernetes.Interface, lockName string, runFunc func(ctx context.Context)) *leaderElection
NewLeaderElectionWithConfigMaps returns an implementation of leader election using ConfigMaps
func NewLeaderElectionWithEndpoints ¶
func NewLeaderElectionWithEndpoints(clientset kubernetes.Interface, lockName string, runFunc func(ctx context.Context)) *leaderElection
NewLeaderElectionWithEndpoints returns an implementation of leader election using Endpoints
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.