Skip to content

Commit 262cfee

Browse files
committed
feat: propagate no controller annotation
1 parent e22f2b3 commit 262cfee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

controllers/deployment/reconcile.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ func (c *controller) createFirewallSet(r *controllers.Ctx[*v2.FirewallDeployment
166166
},
167167
}
168168

169+
if r.Target.Annotations != nil {
170+
if val, ok := r.Target.Annotations[v2.FirewallNoControllerConnectionAnnotation]; ok {
171+
set.Annotations[v2.FirewallNoControllerConnectionAnnotation] = val
172+
}
173+
}
174+
169175
err = c.c.GetSeedClient().Create(r.Ctx, set, &client.CreateOptions{})
170176
if err != nil {
171177
cond := v2.NewCondition(v2.FirewallDeplomentProgressing, v2.ConditionFalse, "FirewallSetCreateError", fmt.Sprintf("Error creating firewall set: %s.", err))

0 commit comments

Comments
 (0)