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