Skip to content

Commit 4be40db

Browse files
Actually remove the annotation during migration (#189)
Signed-off-by: Alexey Ermakov <[email protected]>
1 parent 83b4cf2 commit 4be40db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/stackset.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (c *StackSetController) migrateToStackset(ctx context.Context, ssc *core.St
204204
ssc.StackSet.Spec.Traffic = dts
205205

206206
// remove ingress annotation
207-
ssc.Ingress.Annotations[stackTrafficWeightsAnnotationKey] = ""
207+
delete(ssc.Ingress.Annotations, stackTrafficWeightsAnnotationKey)
208208
// set stackset to be authorative
209209
ssc.Ingress.Annotations[ingressAuthorativeAnnotationKey] = "false"
210210

0 commit comments

Comments
 (0)