-
Hi ArgoWorkflows community, I have this ClusterWorkflowTemplate: apiVersion: argoproj.io/v1alpha1
kind: ClusterWorkflowTemplate
metadata:
name: default-wft
spec:
templates:
- name: run-task
inputs:
parameters:
- name: task_image
- name: execution_environment
container:
image: "{{inputs.parameters.task_image}}"
env:
- name: DB_HOST
value: ${DB_HOST}
command: ["python", "-m", "software"]
args: ["{{inputs.parameters.execution_environment}}"] And I want it to only include DB_HOST if I set a environment. |
Beta Was this translation helpful? Give feedback.
Answered by
tooptoop4
Nov 11, 2024
Replies: 1 comment
-
in the command u can unset the variable if empty |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Zujiry
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in the command u can unset the variable if empty