You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
agilgur5
changed the title
Allow setting namespace when submitting a ClusteWorkflowTemplate from the UI
UI: Set namespace when submitting ClusterWorkflowTemplate
Feb 14, 2024
This could be useful when you a common workflow for different teams like regular data backup scripts where they have to simply select the service_name as namespace and the workflow would get executed in the selected service_namespace.
I tried something like this but everytime it is being deployed in default namespace.
apiVersion: argoproj.io/v1alpha1kind: ClusterWorkflowTemplatemetadata:
name: my-cluster-workflow-templatespec:
entrypoint: my-job-templatetemplates:
- name: my-job-templateinputs:
parameters:
- name: namespacedescription: "This is where the workflow will get executed."default: "backend"enum:
- "serviceA"
- "serviceB"
- "serviceC"valueFrom:
supplied: {}
- name: messagevalue: "Hello, World!"script:
image: alpine:latestcommand: ["sh"]source: | "echo {{inputs.parameters.message}} from selected {{inputs.parameters.namespace}}."namespace: "demo-{{inputs.parameters.namespace}}"ttlStrategy:
secondsAfterCompletion: 300podGC:
strategy: OnPodCompletion
Can someone reproduce this? There is no specific ClusterRole(or RoleBindings) were created. Going with the default helm set-up.
Summary
Currently, there's no way (or I haven't found one) to set the workflow namespace when submitting a
ClusterWorkflowTemplate
from the UI.Use Cases
A template may be submitted in different namespaces depending on which team/access/whatever is needed for that template. This is equivalent of doing
Current workaround is creating a WorkflowTemplate in each namespace, but that's really clunky.
Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
The text was updated successfully, but these errors were encountered: