Documentation ¶
Index ¶
- type GenerationUnchangedOnUpdatePredicate
- func (GenerationUnchangedOnUpdatePredicate) Create(e event.CreateEvent) bool
- func (GenerationUnchangedOnUpdatePredicate) Delete(e event.DeleteEvent) bool
- func (GenerationUnchangedOnUpdatePredicate) Generic(e event.GenericEvent) bool
- func (GenerationUnchangedOnUpdatePredicate) Update(e event.UpdateEvent) bool
- type GenerationUnchangedPredicate
- type IgnoreAllPredicate
- type IgnoreBackups
- type NewObjectsPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerationUnchangedOnUpdatePredicate ¶
GenerationUnchangedOnUpdatePredicate implements a default update predicate function on Generation unchanged.
This predicate will skip any event except updates. In the case of update events that have a change in the object's metadata.generation field, those events will be skipped as well. 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 has unchanged, and only the metadata and/or status fields are changed.
func (GenerationUnchangedOnUpdatePredicate) Create ¶
func (GenerationUnchangedOnUpdatePredicate) Create(e event.CreateEvent) bool
Create implements default CreateEvent filter for validating generation change.
func (GenerationUnchangedOnUpdatePredicate) Delete ¶
func (GenerationUnchangedOnUpdatePredicate) Delete(e event.DeleteEvent) bool
Delete implements default DeleteEvent filter for validating generation change.
func (GenerationUnchangedOnUpdatePredicate) Generic ¶
func (GenerationUnchangedOnUpdatePredicate) Generic(e event.GenericEvent) bool
Generic implements default GenericEvent filter for validating generation change.
func (GenerationUnchangedOnUpdatePredicate) Update ¶
func (GenerationUnchangedOnUpdatePredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating generation change.
type GenerationUnchangedPredicate ¶
GenerationUnchangedPredicate implements a default update predicate function on Generation unchanged.
This predicate will skip update events that have a 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 has unchanged, and only the metadata and/or status fields are changed.
func (GenerationUnchangedPredicate) Update ¶
func (GenerationUnchangedPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating generation change.
type IgnoreAllPredicate ¶
IgnoreAllPredicate implements a default update predicate function to ignore all events.
This predicate will skip any kind of event. It will be useful in cases in which a For clause has to be defined but no reconcile should happen over those resources.
func (IgnoreAllPredicate) Create ¶
func (IgnoreAllPredicate) Create(e event.CreateEvent) bool
Create implements default CreateEvent filter to ignore any resource create.
func (IgnoreAllPredicate) Delete ¶
func (IgnoreAllPredicate) Delete(e event.DeleteEvent) bool
Delete implements default DeleteEvent filter to ignore any resource delete.
func (IgnoreAllPredicate) Generic ¶
func (IgnoreAllPredicate) Generic(e event.GenericEvent) bool
Generic implements default GenericEvent filter to ignore any resource generic.
func (IgnoreAllPredicate) Update ¶
func (IgnoreAllPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter to ignore any resource update.
type IgnoreBackups ¶
IgnoreBackups implements a default create predicate function to ignore all create events triggered by backup tools.
func (IgnoreBackups) Create ¶
func (IgnoreBackups) Create(e event.CreateEvent) bool
Create returns false if the object associated with the create event contains any of the expected backup labels. It will return true otherwise.
type NewObjectsPredicate ¶
NewObjectsPredicate implements a default update predicate function on Generation unchanged.
This predicate will skip update events that have a 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 has unchanged, and only the metadata and/or status fields are changed.
func (NewObjectsPredicate) Delete ¶
func (NewObjectsPredicate) Delete(e event.DeleteEvent) bool
Delete implements default DeleteEvent filter to ignore any resource delete.
func (NewObjectsPredicate) Generic ¶
func (NewObjectsPredicate) Generic(e event.GenericEvent) bool
Generic implements default GenericEvent filter to ignore any resource generic.
func (NewObjectsPredicate) Update ¶
func (NewObjectsPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter to ignore any resource update.