predicates

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterOrNamespaceWithImportLabel

func ClusterOrNamespaceWithImportLabel(ctx context.Context, logger logr.Logger, cl client.Client, label string) predicate.Funcs

ClusterOrNamespaceWithImportLabel returns a predicate that returns true only if the provided resource is a cluster and has an import label set on it or on its namespace.

func ClusterWithReadyControlPlane

func ClusterWithReadyControlPlane(logger logr.Logger) predicate.Funcs

ClusterWithReadyControlPlane returns a predicate that returns true only if the provided resource is a cluster with a ready control plane.

func ClusterWithoutImportedAnnotation

func ClusterWithoutImportedAnnotation(logger logr.Logger) predicate.Funcs

ClusterWithoutImportedAnnotation returns a predicate that returns true only if the provided resource does not contain "clusterImportedAnnotation" annotation. When annotation is present on the resource, controller will skip reconciliation.

func NameHasSuffix

func NameHasSuffix(logger logr.Logger, suffix string) predicate.Funcs

NameHasSuffix returns a predicate that checks the name of the object has a specific suffix.

func V2ProvClusterOwned

func V2ProvClusterOwned(logger logr.Logger) predicate.Funcs

V2ProvClusterOwned returns a predicate that checks for a v2prov cluster owner reference.

Types

This section is empty.

Jump to

Keyboard shortcuts

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