Documentation ¶
Index ¶
- Variables
- func AddTypePredicate(predicates []predicate.Predicate, extensionTypes ...string) []predicate.Predicate
- func ClusterShootProviderType(providerType string) predicate.Predicate
- func DefaultControllerPredicates(ignoreOperationAnnotation bool, preconditions ...predicate.Predicate) []predicate.Predicate
- func GardenCoreProviderType(providerType string) predicate.Predicate
- func GardenSecurityProviderType(providerType string) predicate.Predicate
- func HasClass(extensionClass extensionsv1alpha1.ExtensionClass) predicate.Predicate
- func HasPurpose(purpose extensionsv1alpha1.Purpose) predicate.Predicate
- func HasType(typeName string) predicate.Predicate
- func ShootNotFailedPredicate(ctx context.Context, mgr manager.Manager) predicate.Predicate
Constants ¶
This section is empty.
Variables ¶
var IsInGardenNamespacePredicate = predicate.NewPredicateFuncs(func(obj client.Object) bool { return obj != nil && obj.GetNamespace() == v1beta1constants.GardenNamespace })
IsInGardenNamespacePredicate is a predicate which returns true when the provided object is in the 'garden' namespace.
Functions ¶
func AddTypePredicate ¶
func AddTypePredicate(predicates []predicate.Predicate, extensionTypes ...string) []predicate.Predicate
AddTypePredicate returns a new slice which contains a type predicate and the given `predicates`. if more than one extensionTypes is given all given types are or combined
func ClusterShootProviderType ¶
ClusterShootProviderType is a predicate for the provider type of the shoot in the cluster resource.
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 GardenCoreProviderType ¶ added in v1.4.0
GardenCoreProviderType is a predicate for the provider type of a `gardencore.Object` implementation.
func GardenSecurityProviderType ¶ added in v1.104.0
GardenSecurityProviderType is a predicate for the provider type of a `gardensecurity.Object` implementation.
func HasClass ¶ added in v1.101.0
func HasClass(extensionClass extensionsv1alpha1.ExtensionClass) predicate.Predicate
HasClass filters the incoming objects for the given extension class. For backwards compatibility, if the extension class is unset, it is assumed that the extension belongs to a shoot cluster. An empty given 'extensionClass' is likewise treated to be of class 'shoot'.
func HasPurpose ¶
func HasPurpose(purpose extensionsv1alpha1.Purpose) predicate.Predicate
HasPurpose filters the incoming ControlPlanes for the given spec.purpose.
Types ¶
This section is empty.