mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Fixes Hazelcast example e2e test
This commit is contained in:
parent
d46dc10b49
commit
2df8a224ea
@ -544,12 +544,12 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
|
|||||||
return filepath.Join(framework.TestContext.RepoRoot, "examples/storage/hazelcast", file)
|
return filepath.Join(framework.TestContext.RepoRoot, "examples/storage/hazelcast", file)
|
||||||
}
|
}
|
||||||
serviceYaml := mkpath("hazelcast-service.yaml")
|
serviceYaml := mkpath("hazelcast-service.yaml")
|
||||||
controllerYaml := mkpath("hazelcast-controller.yaml")
|
deploymentYaml := mkpath("hazelcast-deployment.yaml")
|
||||||
nsFlag := fmt.Sprintf("--namespace=%v", ns)
|
nsFlag := fmt.Sprintf("--namespace=%v", ns)
|
||||||
|
|
||||||
By("starting hazelcast")
|
By("starting hazelcast")
|
||||||
framework.RunKubectlOrDie("create", "-f", serviceYaml, nsFlag)
|
framework.RunKubectlOrDie("create", "-f", serviceYaml, nsFlag)
|
||||||
framework.RunKubectlOrDie("create", "-f", controllerYaml, nsFlag)
|
framework.RunKubectlOrDie("create", "-f", deploymentYaml, nsFlag)
|
||||||
label := labels.SelectorFromSet(labels.Set(map[string]string{"name": "hazelcast"}))
|
label := labels.SelectorFromSet(labels.Set(map[string]string{"name": "hazelcast"}))
|
||||||
err := testutils.WaitForPodsWithLabelRunning(c, ns, label)
|
err := testutils.WaitForPodsWithLabelRunning(c, ns, label)
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
|
Loading…
Reference in New Issue
Block a user