From 788ef39cab4c55b1a1ab27ded571cbf8ac3297ec Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Thu, 15 Oct 2020 12:51:58 +0200 Subject: [PATCH] Fix --dry-run invocation in kubectl e2e --- test/e2e/kubectl/kubectl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/kubectl/kubectl.go b/test/e2e/kubectl/kubectl.go index 4dc3ac93b04..8892d6854f3 100644 --- a/test/e2e/kubectl/kubectl.go +++ b/test/e2e/kubectl/kubectl.go @@ -923,7 +923,7 @@ metadata: if !strings.Contains(podJSON, busyboxImage) { framework.Failf("Failed replacing image from %s to %s in:\n%s\n", httpdImage, busyboxImage, podJSON) } - framework.RunKubectlOrDieInput(ns, podJSON, "replace", "-f", "-", "--dry-run", "server") + framework.RunKubectlOrDieInput(ns, podJSON, "replace", "-f", "-", "--dry-run=server") ginkgo.By("verifying the pod " + podName + " has the right image " + httpdImage) pod, err := c.CoreV1().Pods(ns).Get(context.TODO(), podName, metav1.GetOptions{})