Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow SA / RBAC doesn't render namespace when .Values.singleNamespace is set to true #2631

Open
wobu opened this issue Apr 5, 2024 · 0 comments

Comments

@wobu
Copy link

wobu commented Apr 5, 2024

Describe the bug

When using singleNamespace: true every k8s resource is supposed to be installed within the namespace.
For the components workflow-controller and workflow-server the namespace of the helm release is explicitly rendered in the k8s yaml definitions except for the workflow rbac and service account

see:

{{- range $namespace := or .Values.singleNamespace false | ternary (list "") (append .Values.controller.workflowNamespaces (coalesce .Values.workflow.namespace (include "argo-workflows.namespace" .)) | uniq) }}

the default namespace values of coalesce .Values.workflow.namespace (include "argo-workflows.namespace" .)) is only added to the 2nd case of the ternary when singleNamespace option isn't set to true

i propose to add the coalesce fallback to the whole expression.

files affected:

  • workflow-sa.yaml
  • workflow-rb.yaml
  • workflow-role.yaml

Related helm chart

argo-workflows

Helm chart version

0.41.1

To Reproduce

  1. set .Values.singleNamespace: true
  2. Render helm chart with namespace like helm -n test_namespace template argo-workflows argo/argo-workflows

Expected behavior

namespace of workflow sa and rbac should be explicitly set when using singleNamspace: true

Screenshots

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants