Skip to content

Commit 161df49

Browse files
authored
Merge pull request kubernetes#95594 from soltysh/fix_e2e
Fix --dry-run invocation in kubectl e2e
2 parents e39bdd4 + 788ef39 commit 161df49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/kubectl/kubectl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ metadata:
923923
if !strings.Contains(podJSON, busyboxImage) {
924924
framework.Failf("Failed replacing image from %s to %s in:\n%s\n", httpdImage, busyboxImage, podJSON)
925925
}
926-
framework.RunKubectlOrDieInput(ns, podJSON, "replace", "-f", "-", "--dry-run", "server")
926+
framework.RunKubectlOrDieInput(ns, podJSON, "replace", "-f", "-", "--dry-run=server")
927927

928928
ginkgo.By("verifying the pod " + podName + " has the right image " + httpdImage)
929929
pod, err := c.CoreV1().Pods(ns).Get(context.TODO(), podName, metav1.GetOptions{})

0 commit comments

Comments
 (0)