leaderelection

package
v0.0.0-...-c7dd6ca Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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