mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Fix --dry-run invocation in kubectl e2e
This commit is contained in:
parent
978233775e
commit
788ef39cab
@ -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{})
|
||||||
|
Loading…
Reference in New Issue
Block a user