Skip to content

Commit

Permalink
Add namespace explicitly to pod metadata (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvavili authored and jessesuen committed Oct 26, 2018
1 parent 79ed766 commit 23d733b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workflow/controller/workflowpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23d733b

Please sign in to comment.