mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 07:03:31 +00:00
Use namespace flag passed to RunKubectl* methods
This commit is contained in:
@@ -65,7 +65,7 @@ func cassandraKubectlCreate(ns, file string) {
|
||||
framework.Fail(err.Error())
|
||||
}
|
||||
input := string(data)
|
||||
framework.RunKubectlOrDieInput(ns, input, "create", "-f", "-", fmt.Sprintf("--namespace=%s", ns))
|
||||
framework.RunKubectlOrDieInput(ns, input, "create", "-f", "-")
|
||||
}
|
||||
|
||||
// Setup creates a Cassandra StatefulSet and a PDB. It also brings up a tester
|
||||
|
@@ -64,7 +64,7 @@ func kubectlCreate(ns, file string) {
|
||||
framework.Fail(err.Error())
|
||||
}
|
||||
input := string(data)
|
||||
framework.RunKubectlOrDieInput(ns, input, "create", "-f", "-", fmt.Sprintf("--namespace=%s", ns))
|
||||
framework.RunKubectlOrDieInput(ns, input, "create", "-f", "-")
|
||||
}
|
||||
|
||||
// Setup creates etcd statefulset and then verifies that the etcd is writable.
|
||||
|
@@ -66,7 +66,7 @@ func mysqlKubectlCreate(ns, file string) {
|
||||
framework.Fail(err.Error())
|
||||
}
|
||||
input := string(data)
|
||||
framework.RunKubectlOrDieInput(ns, input, "create", "-f", "-", fmt.Sprintf("--namespace=%s", ns))
|
||||
framework.RunKubectlOrDieInput(ns, input, "create", "-f", "-")
|
||||
}
|
||||
|
||||
func (t *MySQLUpgradeTest) getServiceIP(f *framework.Framework, ns, svcName string) string {
|
||||
|
Reference in New Issue
Block a user