mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
fixed checker pod issue
This commit is contained in:
@@ -101,9 +101,9 @@ var _ = Describe("[Skipped] persistentVolumes", func() {
|
|||||||
|
|
||||||
// The NFS Server pod we're using contains an index.html file
|
// The NFS Server pod we're using contains an index.html file
|
||||||
// Verify the file was really scrubbed from the volume
|
// Verify the file was really scrubbed from the volume
|
||||||
checkpod := makeCheckPod(ns, serverIP)
|
podTemplate := makeCheckPod(ns, serverIP)
|
||||||
checkpod, err = c.Pods(checkpod.Namespace).Get(checkpod.Name)
|
checkpod, err := c.Pods(ns).Create(podTemplate)
|
||||||
Expect(err).NotTo(HaveOccurred())
|
expectNoError(err, "Failed to create checker pod: %v", err)
|
||||||
err = waitForPodSuccessInNamespace(c, checkpod.Name, checkpod.Spec.Containers[0].Name, checkpod.Namespace)
|
err = waitForPodSuccessInNamespace(c, checkpod.Name, checkpod.Spec.Containers[0].Name, checkpod.Namespace)
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user