Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LeaderElection ¶
func LeaderElection( ctx context.Context, log logrus.FieldLogger, namespace string, resourceName string, client kubernetes.Interface, runs ...func(ctx context.Context), ) error
LeaderElection runs the "run" command when it is the leader, and terminates it when it is not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.