We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2d444a commit 6547244Copy full SHA for 6547244
internal/controller/common/predicate.go
@@ -30,7 +30,7 @@ func LabelChangedPredicate() predicate.Predicate {
30
func GenerationChangedPredicate() predicate.Predicate {
31
return predicate.Funcs{
32
UpdateFunc: func(e event.UpdateEvent) bool {
33
- return !reflect.DeepEqual(e.ObjectOld.GetGeneration(), e.ObjectNew.GetGeneration())
+ return e.ObjectOld.GetGeneration() != e.ObjectNew.GetGeneration()
34
},
35
DeleteFunc: func(e event.DeleteEvent) bool {
36
// Evaluates to false if the object has been confirmed deleted.
0 commit comments