predicate

package
v1.137.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 12 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// IsInGardenNamespacePredicate is a predicate which returns true when the provided object is in the 'garden' namespace.
	IsInGardenNamespacePredicate = predicate.NewPredicateFuncs(func(obj client.Object) bool {
		return obj != nil && obj.GetNamespace() == v1beta1constants.GardenNamespace
	})
)

Functions

func DefaultControllerPredicates added in v1.39.0

func DefaultControllerPredicates(ignoreOperationAnnotation bool, preconditions ...predicate.Predicate) []predicate.Predicate

DefaultControllerPredicates returns the default predicates for extension controllers. If the operation annotation is ignored then the only returned predicate is the 'GenerationChangedPredicate'.

func ShootNotFailedPredicate added in v1.39.0

func ShootNotFailedPredicate(ctx context.Context, mgr manager.Manager) predicate.Predicate

ShootNotFailedPredicate returns a predicate which returns true when the Shoot's `.status.lastOperation.state` is not equals 'Failed'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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