Documentation ¶
Index ¶
- type EitherUpdateWhenGenerationNotChangedOrDelete
- func (EitherUpdateWhenGenerationNotChangedOrDelete) Create(_ event.CreateEvent) bool
- func (EitherUpdateWhenGenerationNotChangedOrDelete) Delete(_ event.DeleteEvent) bool
- func (EitherUpdateWhenGenerationNotChangedOrDelete) Generic(_ event.GenericEvent) bool
- func (EitherUpdateWhenGenerationNotChangedOrDelete) Update(e event.UpdateEvent) bool
- type LabelsAndGenerationPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EitherUpdateWhenGenerationNotChangedOrDelete ¶
type EitherUpdateWhenGenerationNotChangedOrDelete struct { }
EitherUpdateWhenGenerationNotChangedOrDelete implements a predicate that triggers reconciles either for updates when generation was not changed or for deletion
func (EitherUpdateWhenGenerationNotChangedOrDelete) Create ¶
func (EitherUpdateWhenGenerationNotChangedOrDelete) Create(_ event.CreateEvent) bool
Create implements Predicate
func (EitherUpdateWhenGenerationNotChangedOrDelete) Delete ¶
func (EitherUpdateWhenGenerationNotChangedOrDelete) Delete(_ event.DeleteEvent) bool
Delete implements Predicate
func (EitherUpdateWhenGenerationNotChangedOrDelete) Generic ¶
func (EitherUpdateWhenGenerationNotChangedOrDelete) Generic(_ event.GenericEvent) bool
Generic implements Predicate
func (EitherUpdateWhenGenerationNotChangedOrDelete) Update ¶
func (EitherUpdateWhenGenerationNotChangedOrDelete) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating no generation change
type LabelsAndGenerationPredicate ¶
LabelsAndGenerationPredicate is based on the default predicate functions but overrides the Update function to only return true if either the labels or generation have changed, status changes won't cause reconciliation
func (LabelsAndGenerationPredicate) Update ¶
func (LabelsAndGenerationPredicate) Update(e event.UpdateEvent) bool
Update only returns true if either the labels or generation have changed
Click to show internal directories.
Click to hide internal directories.