Use != for RV comparison

Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
This commit is contained in:
whitewindmills 2024-05-07 15:37:23 +08:00
parent 3ff8700128
commit 9c70349878
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ var bindingPredicateFn = builder.WithPredicates(predicate.Funcs{
return false
}
return !reflect.DeepEqual(oldResourceVersion, newResourceVersion)
return oldResourceVersion != newResourceVersion
},
DeleteFunc: func(e event.DeleteEvent) bool { return false },
})