Skip to content

Commit cbb9571

Browse files
committed
Add context
1 parent d7f5f58 commit cbb9571

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/framework/controller/predicate/annotation.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ func (cp AnnotationPredicate) Update(e event.UpdateEvent) bool {
4444
// RestartDeploymentAnnotationPredicate skips update events if they are due to a rolling restart.
4545
// This type of event is triggered by adding an annotation to the deployment's PodSpec.
4646
// This is used by the provisioner to ensure it allows for rolling restarts of the nginx deployment
47-
// without reverting the annotation and deleting the new pod(s).
47+
// without reverting the annotation and deleting the new pod(s). Otherwise, if a user changes
48+
// the nginx deployment, we want to see that event so we can revert it back to the configuration
49+
// that we expect it to have.
4850
type RestartDeploymentAnnotationPredicate struct {
4951
predicate.Funcs
5052
}

0 commit comments

Comments
 (0)