Documentation ¶
Overview ¶
Package predicate defines custom predicates used to filter event triggers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeletePredicate ¶
DeletePredicate will only respond to delete events where the object has installer labels
func (DeletePredicate) Create ¶
func (DeletePredicate) Create(e event.CreateEvent) bool
func (DeletePredicate) Delete ¶
func (DeletePredicate) Delete(e event.DeleteEvent) bool
func (DeletePredicate) Generic ¶
func (DeletePredicate) Generic(e event.GenericEvent) bool
func (DeletePredicate) Update ¶
func (DeletePredicate) Update(e event.UpdateEvent) bool
type GenerationChangedPredicate ¶
GenerationChangedPredicate will skip update events that have no change in the object's metadata.generation field. The metadata.generation field of an object is incremented by the API server when writes are made to the spec field of an object. This allows a controller to ignore update events where the spec is unchanged, and only the metadata and/or status fields are changed. This predicate is customized to not ignore certain annotations significant to the multiclusterhub reconciler.
func (GenerationChangedPredicate) Update ¶
func (GenerationChangedPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating generation change
type InstallerLabelPredicate ¶
InstallerLabelPredicate will only respond to events where the object has installer labels
func (InstallerLabelPredicate) Create ¶
func (InstallerLabelPredicate) Create(e event.CreateEvent) bool
TODO: Use controller-runtime's 'NewPredicateFuncs' to simplify once available
func (InstallerLabelPredicate) Delete ¶
func (InstallerLabelPredicate) Delete(e event.DeleteEvent) bool
func (InstallerLabelPredicate) Generic ¶
func (InstallerLabelPredicate) Generic(e event.GenericEvent) bool
func (InstallerLabelPredicate) Update ¶
func (InstallerLabelPredicate) Update(e event.UpdateEvent) bool