Commit 36afe2a4 authored by Dr. Stefan Schimanski's avatar Dr. Stefan Schimanski

Fix nsFlag scope in kubectl-run e2e test

parent ed3a29bd
...@@ -1089,10 +1089,11 @@ var _ = framework.KubeDescribe("Kubectl client", func() { ...@@ -1089,10 +1089,11 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
}) })
framework.KubeDescribe("Kubectl run --rm job", func() { framework.KubeDescribe("Kubectl run --rm job", func() {
nsFlag := fmt.Sprintf("--namespace=%v", ns)
jobName := "e2e-test-rm-busybox-job" jobName := "e2e-test-rm-busybox-job"
It("should create a job from an image, then delete the job [Conformance]", func() { It("should create a job from an image, then delete the job [Conformance]", func() {
nsFlag := fmt.Sprintf("--namespace=%v", ns)
// The rkt runtime doesn't support attach, see #23335 // The rkt runtime doesn't support attach, see #23335
framework.SkipIfContainerRuntimeIs("rkt") framework.SkipIfContainerRuntimeIs("rkt")
framework.SkipUnlessServerVersionGTE(jobsVersion, c) framework.SkipUnlessServerVersionGTE(jobsVersion, c)
......
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