From 54547af5e1944391dfe27b60b553e1ee0cd98095 Mon Sep 17 00:00:00 2001 From: danehans Date: Fri, 14 Jan 2022 11:13:16 -0800 Subject: [PATCH] Patches ingress-gateway deployment image for e2e Signed-off-by: danehans --- e2e/e2e_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index c9a5422..ae13136 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -432,10 +432,11 @@ func checkUpgrade(t *testing.T) { cmd.Stderr = os.Stderr require.NoError(t, cmd.Run(), buf.String()) actual := buf.String() - require.Contains(t, actual, "1.11.3-tetrate-v0 is the latest version in 1.11-tetrate") + require.Contains(t, actual, "1.12.1-tetrate-v1 is the latest version in 1.12-tetrate") // change image to 1.8.1-tetrate-v0 image := "containers.istio.tetratelabs.com/pilot:1.8.1-tetrate-v0" + // Update the Istiod image patch := fmt.Sprintf(`{"spec":{"template":{"spec":{"containers":[{"name":"discovery","image":"%s"}]}}}}`, image) cmd = exec.Command("kubectl", "patch", "deployment", @@ -443,6 +444,14 @@ func checkUpgrade(t *testing.T) { cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr require.NoError(t, cmd.Run()) + // Update the ingress gateway image + patch = fmt.Sprintf(`{"spec":{"template":{"spec":{"containers":[{"name":"istio-proxy","image":"%s"}]}}}}`, + image) + cmd = exec.Command("kubectl", "patch", "deployment", + "-nistio-system", "istio-ingressgateway", "-p", patch) + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + require.NoError(t, cmd.Run()) require.Eventually(t, func() bool { cmd := exec.Command("./getmesh", "check-upgrade") buf := new(bytes.Buffer)