Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLeaderElector ¶
func NewLeaderElector(lock resourcelock.Interface, cfg config.LeaderElectionConfig, leaderFn func(ctx context.Context), leaderStoppedFn func()) (*leaderelection.LeaderElector, error)
func NewResourceLock ¶
func NewResourceLock(corev1 v1.CoreV1Interface, coordinationV1 v12.CoordinationV1Interface, eventRecorder record.EventRecorder, options config.LeaderElectionConfig) ( resourcelock.Interface, error)
NewResourceLock creates a new config map resource lock for use in a leader election loop
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.