Merge pull request #36418 from jimmycuadra/fix-36323

Automatic merge from submit-queue

Use the new name for cassandra-statefulset.yaml in e2e tests.
This commit is contained in:
Kubernetes Submit Queue 2016-11-08 16:41:16 -08:00 committed by GitHub
commit 1e9344e9cc

View File

@ -253,12 +253,12 @@ var _ = framework.KubeDescribe("[Feature:Example]", func() {
nsFlag := fmt.Sprintf("--namespace=%v", ns)
// have to change dns prefix because of the dynamic namespace
input, err := ioutil.ReadFile(mkpath("cassandra-petset.yaml"))
input, err := ioutil.ReadFile(mkpath("cassandra-statefulset.yaml"))
Expect(err).NotTo(HaveOccurred())
output := strings.Replace(string(input), "cassandra-0.cassandra.default.svc.cluster.local", "cassandra-0.cassandra."+ns+".svc.cluster.local", -1)
statefulsetYaml := "/tmp/cassandra-petset.yaml"
statefulsetYaml := "/tmp/cassandra-statefulset.yaml"
err = ioutil.WriteFile(statefulsetYaml, []byte(output), 0644)
Expect(err).NotTo(HaveOccurred())