Skip to content

Commit f3ff137

Browse files
committed
Patches ingress-gateway deployment image for e2e
Signed-off-by: danehans <[email protected]>
1 parent 566c282 commit f3ff137

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

e2e/e2e_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,22 @@ func checkUpgrade(t *testing.T) {
436436

437437
// change image to 1.8.1-tetrate-v0
438438
image := "containers.istio.tetratelabs.com/pilot:1.8.1-tetrate-v0"
439+
// Update the Istiod image
439440
patch := fmt.Sprintf(`{"spec":{"template":{"spec":{"containers":[{"name":"discovery","image":"%s"}]}}}}`,
440441
image)
441442
cmd = exec.Command("kubectl", "patch", "deployment",
442443
"-nistio-system", "istiod", "-p", patch)
443444
cmd.Stdout = os.Stdout
444445
cmd.Stderr = os.Stderr
445446
require.NoError(t, cmd.Run())
447+
// Update the ingress gateway image
448+
patch = fmt.Sprintf(`{"spec":{"template":{"spec":{"containers":[{"name":"istio-proxy","image":"%s"}]}}}}`,
449+
image)
450+
cmd = exec.Command("kubectl", "patch", "deployment",
451+
"-nistio-system", "istio-ingressgateway", "-p", patch)
452+
cmd.Stdout = os.Stdout
453+
cmd.Stderr = os.Stderr
454+
require.NoError(t, cmd.Run())
446455
require.Eventually(t, func() bool {
447456
cmd := exec.Command("./getmesh", "check-upgrade")
448457
buf := new(bytes.Buffer)

0 commit comments

Comments
 (0)