Skip to content

Commit 6547244

Browse files
committed
test
1 parent b2d444a commit 6547244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/common/predicate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func LabelChangedPredicate() predicate.Predicate {
3030
func GenerationChangedPredicate() predicate.Predicate {
3131
return predicate.Funcs{
3232
UpdateFunc: func(e event.UpdateEvent) bool {
33-
return !reflect.DeepEqual(e.ObjectOld.GetGeneration(), e.ObjectNew.GetGeneration())
33+
return e.ObjectOld.GetGeneration() != e.ObjectNew.GetGeneration()
3434
},
3535
DeleteFunc: func(e event.DeleteEvent) bool {
3636
// Evaluates to false if the object has been confirmed deleted.

0 commit comments

Comments
 (0)