predicates

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 9 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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