mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
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
This commit is contained in:
commit
7cb30052d3
@ -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