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 8081eb5 commit cbb12faCopy full SHA for cbb12fa
pkg/patterns/declarative/watch.go
@@ -151,8 +151,8 @@ type clusterWatch struct {
151
registered map[string]struct{}
152
}
153
154
-// AfterApply is called by the controller after an apply. We establish any new watches.
155
-func (w *clusterWatch) AfterApply(ctx context.Context, op *ApplyOperation) error {
+// BeforeApply is called by the controller before an apply. We establish any new watches that will be needed by the apply.
+func (w *clusterWatch) BeforeApply(ctx context.Context, op *ApplyOperation) error {
156
log := log.FromContext(ctx)
157
158
labelSelector, err := labels.ValidatedSelectorFromSet(w.labelMaker(ctx, op.Subject))
0 commit comments