From 71477ca33ee6be60574e4fb7c7543d1e0ebec26f Mon Sep 17 00:00:00 2001 From: Divya Vavili Date: Wed, 24 Oct 2018 10:51:28 -0700 Subject: [PATCH] Add namespace explicitly to pod metadata --- workflow/controller/workflowpod.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/controller/workflowpod.go b/workflow/controller/workflowpod.go index 3ca62c26a49a..c0f2fed6d29e 100644 --- a/workflow/controller/workflowpod.go +++ b/workflow/controller/workflowpod.go @@ -110,7 +110,8 @@ func (woc *wfOperationCtx) createWorkflowPod(nodeName string, mainCtr apiv1.Cont mainCtr.Name = common.MainContainerName pod := &apiv1.Pod{ ObjectMeta: metav1.ObjectMeta{ - Name: nodeID, + Name: nodeID, + Namespace: woc.wf.ObjectMeta.Namespace, Labels: map[string]string{ common.LabelKeyWorkflow: woc.wf.ObjectMeta.Name, // Allows filtering by pods related to specific workflow common.LabelKeyCompleted: "false", // Allows filtering by incomplete workflow pods