Fix --dry-run invocation in kubectl e2e

This commit is contained in:
Maciej Szulik 2020-10-15 12:51:58 +02:00
parent 978233775e
commit 788ef39cab
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -923,7 +923,7 @@ metadata:
if !strings.Contains(podJSON, busyboxImage) { if !strings.Contains(podJSON, busyboxImage) {
framework.Failf("Failed replacing image from %s to %s in:\n%s\n", httpdImage, busyboxImage, podJSON) 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) ginkgo.By("verifying the pod " + podName + " has the right image " + httpdImage)
pod, err := c.CoreV1().Pods(ns).Get(context.TODO(), podName, metav1.GetOptions{}) pod, err := c.CoreV1().Pods(ns).Get(context.TODO(), podName, metav1.GetOptions{})