Commit 70a2c7dd authored by k8s-merge-robot's avatar k8s-merge-robot Committed by GitHub

Merge pull request #28808 from dims/fix-issue-27978

Automatic merge from submit-queue Fix path for examples - storage/volume directories changed Added /volume and /storage in a couple of spots. Fixes #27978
parents b840f039 5fda0c25
...@@ -141,7 +141,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -141,7 +141,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.KubeDescribe("Celery-RabbitMQ", func() { framework.KubeDescribe("Celery-RabbitMQ", func() {
It("should create and stop celery+rabbitmq servers", func() { It("should create and stop celery+rabbitmq servers", func() {
mkpath := func(file string) string { mkpath := func(file string) string {
return filepath.Join(framework.TestContext.RepoRoot, "examples", "celery-rabbitmq", file) return filepath.Join(framework.TestContext.RepoRoot, "examples/celery-rabbitmq", file)
} }
rabbitmqServiceYaml := mkpath("rabbitmq-service.yaml") rabbitmqServiceYaml := mkpath("rabbitmq-service.yaml")
rabbitmqControllerYaml := mkpath("rabbitmq-controller.yaml") rabbitmqControllerYaml := mkpath("rabbitmq-controller.yaml")
...@@ -192,7 +192,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -192,7 +192,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.KubeDescribe("Spark", func() { framework.KubeDescribe("Spark", func() {
It("should start spark master, driver and workers", func() { It("should start spark master, driver and workers", func() {
mkpath := func(file string) string { mkpath := func(file string) string {
return filepath.Join(framework.TestContext.RepoRoot, "examples", "spark", file) return filepath.Join(framework.TestContext.RepoRoot, "examples/spark", file)
} }
// TODO: Add Zepplin and Web UI to this example. // TODO: Add Zepplin and Web UI to this example.
...@@ -256,7 +256,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -256,7 +256,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.KubeDescribe("Cassandra", func() { framework.KubeDescribe("Cassandra", func() {
It("should create and scale cassandra", func() { It("should create and scale cassandra", func() {
mkpath := func(file string) string { mkpath := func(file string) string {
return filepath.Join(framework.TestContext.RepoRoot, "examples", "cassandra", file) return filepath.Join(framework.TestContext.RepoRoot, "examples/storage/cassandra", file)
} }
serviceYaml := mkpath("cassandra-service.yaml") serviceYaml := mkpath("cassandra-service.yaml")
controllerYaml := mkpath("cassandra-controller.yaml") controllerYaml := mkpath("cassandra-controller.yaml")
...@@ -295,7 +295,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -295,7 +295,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.KubeDescribe("Storm", func() { framework.KubeDescribe("Storm", func() {
It("should create and stop Zookeeper, Nimbus and Storm worker servers", func() { It("should create and stop Zookeeper, Nimbus and Storm worker servers", func() {
mkpath := func(file string) string { mkpath := func(file string) string {
return filepath.Join(framework.TestContext.RepoRoot, "examples", "storm", file) return filepath.Join(framework.TestContext.RepoRoot, "examples/storm", file)
} }
zookeeperServiceJson := mkpath("zookeeper-service.json") zookeeperServiceJson := mkpath("zookeeper-service.json")
zookeeperPodJson := mkpath("zookeeper.json") zookeeperPodJson := mkpath("zookeeper.json")
...@@ -352,7 +352,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -352,7 +352,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.KubeDescribe("Liveness", func() { framework.KubeDescribe("Liveness", func() {
It("liveness pods should be automatically restarted", func() { It("liveness pods should be automatically restarted", func() {
mkpath := func(file string) string { mkpath := func(file string) string {
return filepath.Join(framework.TestContext.RepoRoot, "docs", "user-guide", "liveness", file) return filepath.Join(framework.TestContext.RepoRoot, "docs/user-guide/liveness", file)
} }
execYaml := mkpath("exec-liveness.yaml") execYaml := mkpath("exec-liveness.yaml")
httpYaml := mkpath("http-liveness.yaml") httpYaml := mkpath("http-liveness.yaml")
...@@ -402,7 +402,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -402,7 +402,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.KubeDescribe("Secret", func() { framework.KubeDescribe("Secret", func() {
It("should create a pod that reads a secret", func() { It("should create a pod that reads a secret", func() {
mkpath := func(file string) string { mkpath := func(file string) string {
return filepath.Join(framework.TestContext.RepoRoot, "docs", "user-guide", "secrets", file) return filepath.Join(framework.TestContext.RepoRoot, "docs/user-guide/secrets", file)
} }
secretYaml := mkpath("secret.yaml") secretYaml := mkpath("secret.yaml")
podYaml := mkpath("secret-pod.yaml") podYaml := mkpath("secret-pod.yaml")
...@@ -424,7 +424,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -424,7 +424,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.KubeDescribe("Downward API", func() { framework.KubeDescribe("Downward API", func() {
It("should create a pod that prints his name and namespace", func() { It("should create a pod that prints his name and namespace", func() {
mkpath := func(file string) string { mkpath := func(file string) string {
return filepath.Join(framework.TestContext.RepoRoot, "docs", "user-guide", "downward-api", file) return filepath.Join(framework.TestContext.RepoRoot, "docs/user-guide/downward-api", file)
} }
podYaml := mkpath("dapi-pod.yaml") podYaml := mkpath("dapi-pod.yaml")
nsFlag := fmt.Sprintf("--namespace=%v", ns) nsFlag := fmt.Sprintf("--namespace=%v", ns)
...@@ -446,7 +446,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -446,7 +446,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.KubeDescribe("RethinkDB", func() { framework.KubeDescribe("RethinkDB", func() {
It("should create and stop rethinkdb servers", func() { It("should create and stop rethinkdb servers", func() {
mkpath := func(file string) string { mkpath := func(file string) string {
return filepath.Join(framework.TestContext.RepoRoot, "examples", "rethinkdb", file) return filepath.Join(framework.TestContext.RepoRoot, "examples/storage/rethinkdb", file)
} }
driverServiceYaml := mkpath("driver-service.yaml") driverServiceYaml := mkpath("driver-service.yaml")
rethinkDbControllerYaml := mkpath("rc.yaml") rethinkDbControllerYaml := mkpath("rc.yaml")
...@@ -491,7 +491,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() { ...@@ -491,7 +491,7 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
framework.KubeDescribe("Hazelcast", func() { framework.KubeDescribe("Hazelcast", func() {
It("should create and scale hazelcast", func() { It("should create and scale hazelcast", func() {
mkpath := func(file string) string { mkpath := func(file string) string {
return filepath.Join(framework.TestContext.RepoRoot, "examples", "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") controllerYaml := mkpath("hazelcast-controller.yaml")
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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