Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultLeaseDuration is the default lease duration for leader election DefaultLeaseDuration = 15 * time.Second // DefaultRenewDeadline is the default renew duration for leader election DefaultRenewDeadline = 10 * time.Second // DefaultRetryPeriod is the default retry period for leader election DefaultRetryPeriod = 2 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func BindFlags ¶
func BindFlags(l *options.LeaderElectionConfiguration, fs *pflag.FlagSet)
BindFlags binds the common LeaderElectionCLIConfig flags to a flagset
func DefaultLeaderElectionConfiguration ¶
func DefaultLeaderElectionConfiguration() options.LeaderElectionConfiguration
DefaultLeaderElectionConfiguration the default configurations used for leader election
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.