leadership

package
v0.0.0-...-24794f7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNewLock

func GetNewLock(client coordinationv1.CoordinationV1Interface, lockName, podname, namespace string) *resourcelock.LeaseLock

Types

type HealthChecker

type HealthChecker interface {
	SetupLivenessEndpoint()
}

func NewHealthChecker

func NewHealthChecker() HealthChecker

type LeaderElector

type LeaderElector interface {
	RunLeaderElection(ctx context.Context, stopChan chan struct{})
}

func NewLeaderElector

func NewLeaderElector(lock *resourcelock.LeaseLock, cfg *config.Config, id string, clientset k8s.KubernetesClient, leaderFunc LeaderFunc) LeaderElector

type LeaderFunc

type LeaderFunc func(ctx context.Context, stopChan chan struct{}, cfg *config.Config, clientset k8s.KubernetesClient)

Jump to

Keyboard shortcuts

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