From af2512b4f2729692fe3f54195f722061e0d136e6 Mon Sep 17 00:00:00 2001 From: Kamal Acharya Date: Fri, 30 Jun 2023 19:45:20 +0530 Subject: [PATCH] nodeSelector and toleration in argoworkflow --- charts/argo-workflow/templates/deployment.yaml | 12 ++++++++++++ charts/argo-workflow/values.yaml | 2 ++ 2 files changed, 14 insertions(+) diff --git a/charts/argo-workflow/templates/deployment.yaml b/charts/argo-workflow/templates/deployment.yaml index fdf05bd7..f5eede15 100644 --- a/charts/argo-workflow/templates/deployment.yaml +++ b/charts/argo-workflow/templates/deployment.yaml @@ -23,6 +23,18 @@ spec: {{- toYaml $.Values.argoWorkflow.labels | nindent 8 }} {{- end }} spec: + {{- if $.Values.argoWorkflow.nodeselector }} + nodeSelector: + {{- toYaml .Values.argoWorkflow.nodeselector | nindent 8}} + {{- end }} + {{- if $.Values.argoWorkflow.tolerations }} + tolerations: + {{- range $tol := .Values.argoWorkflow.tolerations }} + - key: {{ $tol.key }} + operator: {{ $tol.operator }} + effect: {{ $tol.effect }} + {{- end }} + {{- end }} containers: - args: - --configmap diff --git a/charts/argo-workflow/values.yaml b/charts/argo-workflow/values.yaml index 0473fb0c..63e0d905 100644 --- a/charts/argo-workflow/values.yaml +++ b/charts/argo-workflow/values.yaml @@ -5,6 +5,8 @@ argoWorkflow: region: us-east-2 replicas: 1 labels: {} + nodeselector: {} + tolerations: [] annotations: {} EnvVariables: [] EnvVariablesFrom: []