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 ¶
func NewLeaderElector ¶
func NewLeaderElector(lock *resourcelock.LeaseLock, cfg *config.Config, id string, clientset k8s.KubernetesClient, leaderFunc LeaderFunc) LeaderElector
type LeaderFunc ¶
Click to show internal directories.
Click to hide internal directories.