Skip to content

Commit

Permalink
test: test fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Garett MacGowan <[email protected]>
  • Loading branch information
Garett-MacGowan committed Jun 27, 2024
1 parent 9175555 commit e9563e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/e2e/manifests/mixins/get-cm-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ rules:
- configmaps
verbs:
- get
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
2 changes: 1 addition & 1 deletion workflow/controller/workflowpod.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (woc *wfOperationCtx) createWorkflowPod(ctx context.Context, nodeName strin
}

// Configuring default container to be used with commands like "kubectl exec/logs".
// Select "main" container if it's available. In other case use the last container (can happent when pod created from ContainerSet).
// Select "main" container if it's available. In other case use the last container (can happen when pod created from ContainerSet).
defaultContainer := pod.Spec.Containers[len(pod.Spec.Containers)-1].Name
for _, c := range pod.Spec.Containers {
if c.Name == common.MainContainerName {
Expand Down

0 comments on commit e9563e1

Please sign in to comment.