controller

package
v1.13.1-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL