Documentation ¶
Overview ¶
Package leaderelection implements the leader election mechanism. It avoids that multiple virtual node targeting the same cluster reflect some resources.
Index ¶
Constants ¶
View Source
const LeaderElectorName = "virtual-kubelet-leader-election"
LeaderElectorName is the name of the leader election lock.
Variables ¶
This section is empty.
Functions ¶
func InitAndRun ¶
func InitAndRun(ctx context.Context, opts Opts, rc *rest.Config, eb record.EventBroadcaster, initCallback func()) error
InitAndRun initializes and runs the leader election mechanism.
Types ¶
Click to show internal directories.
Click to hide internal directories.