tests: Render pods in the test namespace
Explicitly render test utils pods in the default testing namespace. By
doing this, we make sure that all the helper objects created by our
tests are removed when the test namespace is deleted.
Jobs, using RenderPod, are suffering from this issue.
@@ -2836,6 +2836,7 @@ func RenderPod(name string, cmd []string, args []string) *k8sv1.Pod {
pod := k8sv1.Pod{
ObjectMeta: metav1.ObjectMeta{
GenerateName: name,
+ Namespace: NamespaceTestDefault,
Labels: map[string]string{
v1.AppLabel: "test",
},
