Skip to content

Commit 32c33ae

Browse files
committed
minor tweak
Signed-off-by: GautamBytes <manchandanigautam@gmail.com>
1 parent d65b512 commit 32c33ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/trafficrouting/network/ingress/ingress_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ var (
209209
}
210210
}
211211
}
212-
annotations["alb.ingress.kubernetes.io/actions.canary"] = action
212+
annotations["alb.ingress.kubernetes.io/actions.canary"] = json.encode(action)
213213
214214
if obj.matches then
215215
local conds = {}
@@ -236,7 +236,7 @@ var (
236236
end
237237
end
238238
end
239-
annotations["alb.ingress.kubernetes.io/conditions.canary"] = conds
239+
annotations["alb.ingress.kubernetes.io/conditions.canary"] = json.encode(conds)
240240
end
241241
242242
return annotations

0 commit comments

Comments
 (0)