workerlabel

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelKey = "worker-name"
)

Variables

This section is empty.

Functions

func LabelSelector

func LabelSelector(workerName string) (labels.Selector, error)

LabelSelector returns a label selector to only process clusters with a matching worker-name label.

func Predicates

func Predicates(workerName string) predicate.Funcs

Predicates returns a predicate func to only process objects with a matching worker-name label This works regardless of the underlying type Once https://github.com/kubernetes-sigs/controller-runtime/issues/244 is fixed we won't need this anymore.

Types

This section is empty.

Jump to

Keyboard shortcuts

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