Commit 7cb30052 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #41310 from oscerd/hazelcast-example-test-e2e

Automatic merge from submit-queue Fixes Hazelcast example e2e test **What this PR does / why we need it**: This PR fixes the Hazelcast example e2e test **Special notes for your reviewer**: It is related to this PR https://github.com/kubernetes/kubernetes/pull/39580
parents 4e01d1d1 2df8a224
...@@ -544,12 +544,12 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment