leaderelection

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Overview

Package leaderelection provides a few utilities to help us to enable leader election support in the Watcher controllers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLeaderAwareFuncs

func NewLeaderAwareFuncs[O metav1.Object](lister Lister[O]) reconciler.LeaderAwareFuncs

NewLeaderAwareFuncs returns a new reconciler.LeaderAwareFuncs object to be used in our controllers.

Types

type Lister

type Lister[O metav1.Object] func(labels.Selector) ([]O, error)

Lister is a generic signature of Lister.List functions, by allowing us to support various listers in the NewLeaderAwareFuncs function below.

Jump to

Keyboard shortcuts

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