mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
fix #29225: wait slow during image pull
Signed-off-by: Huamin Chen <hchen@redhat.com>
This commit is contained in:
parent
008fc22d31
commit
e7abb004b5
@ -253,11 +253,12 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
|
|||||||
workerControllerJson := mkpath("storm-worker-controller.json")
|
workerControllerJson := mkpath("storm-worker-controller.json")
|
||||||
nsFlag := fmt.Sprintf("--namespace=%v", ns)
|
nsFlag := fmt.Sprintf("--namespace=%v", ns)
|
||||||
zookeeperPod := "zookeeper"
|
zookeeperPod := "zookeeper"
|
||||||
|
nimbusPod := "nimbus"
|
||||||
|
|
||||||
By("starting Zookeeper")
|
By("starting Zookeeper")
|
||||||
framework.RunKubectlOrDie("create", "-f", zookeeperPodJson, nsFlag)
|
framework.RunKubectlOrDie("create", "-f", zookeeperPodJson, nsFlag)
|
||||||
framework.RunKubectlOrDie("create", "-f", zookeeperServiceJson, nsFlag)
|
framework.RunKubectlOrDie("create", "-f", zookeeperServiceJson, nsFlag)
|
||||||
err := framework.WaitForPodNameRunningInNamespace(c, zookeeperPod, ns)
|
err := f.WaitForPodRunningSlow(zookeeperPod)
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
By("checking if zookeeper is up and running")
|
By("checking if zookeeper is up and running")
|
||||||
@ -269,7 +270,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
|
|||||||
By("starting Nimbus")
|
By("starting Nimbus")
|
||||||
framework.RunKubectlOrDie("create", "-f", nimbusPodJson, nsFlag)
|
framework.RunKubectlOrDie("create", "-f", nimbusPodJson, nsFlag)
|
||||||
framework.RunKubectlOrDie("create", "-f", nimbusServiceJson, nsFlag)
|
framework.RunKubectlOrDie("create", "-f", nimbusServiceJson, nsFlag)
|
||||||
err = framework.WaitForPodNameRunningInNamespace(c, "nimbus", ns)
|
err = f.WaitForPodRunningSlow(nimbusPod)
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
|
||||||
err = framework.WaitForEndpoint(c, ns, "nimbus")
|
err = framework.WaitForEndpoint(c, ns, "nimbus")
|
||||||
|
Loading…
Reference in New Issue
Block a user