We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7bf4a1e + a46679d commit e81a498Copy full SHA for e81a498
pkg/controllers/status/common.go
@@ -43,7 +43,13 @@ import (
43
)
44
45
var bindingPredicateFn = builder.WithPredicates(predicate.Funcs{
46
- CreateFunc: func(event.CreateEvent) bool { return false },
+ CreateFunc: func(event.CreateEvent) bool {
47
+ // Although we don't need to process the ResourceBinding immediately upon its creation,
48
+ // but it's necessary to ensure that all existing ResourceBindings are processed
49
+ // uniformly once when the component restarts.
50
+ // This guarantees that no ResourceBinding is missed after a controller restart.
51
+ return true
52
+ },
53
UpdateFunc: func(e event.UpdateEvent) bool {
54
var oldResourceVersion, newResourceVersion string
55
0 commit comments