Skip to content

Commit f8f796f

Browse files
feat(argo-workflows): global constraints (nodeSelector/tolerations) (#142)
1 parent 07d7b28 commit f8f796f

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

charts/argo-workflows/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: v3.6.4-cap-CR-27392
33
name: argo-workflows
44
description: A Helm chart for Argo Workflows
55
type: application
6-
version: 0.45.2-v3.6.4-cap-CR-27392
6+
version: 0.45.3-v3.6.4-cap-CR-27392
77
icon: https://argo-workflows.readthedocs.io/en/stable/assets/logo.png
88
home: https://github.com/argoproj/argo-helm
99
sources:
@@ -17,4 +17,4 @@ annotations:
1717
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
1818
artifacthub.io/changes: |
1919
- kind: changed
20-
description: Bump argo-workflows to v3.6.4-cap-CR-27392
20+
description: Add default global tolerations and nodeSelector

charts/argo-workflows/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ Fields to note:
120120
| emissary.images | list | `[]` | The command/args for each image on workflow, needed when the command is not specified and the emissary executor is used. |
121121
| extraObjects | list | `[]` | Array of extra K8s manifests to deploy |
122122
| fullnameOverride | string | `nil` | String to fully override "argo-workflows.fullname" template |
123+
| global.nodeSelector | object | `{}` | Default node selector for all components |
124+
| global.tolerations | list | `[]` | Default tolerations for all components |
123125
| images.pullPolicy | string | `"Always"` | imagePullPolicy to apply to all containers |
124126
| images.pullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry |
125127
| images.tag | string | `""` | Common tag for Argo Workflows images. Defaults to `.Chart.AppVersion`. |

charts/argo-workflows/templates/controller/workflow-controller-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ spec:
118118
volumes:
119119
{{- toYaml . | nindent 6 }}
120120
{{- end }}
121-
{{- with .Values.controller.nodeSelector }}
121+
{{- with .Values.controller.nodeSelector | default .Values.global.nodeSelector }}
122122
nodeSelector:
123123
{{- toYaml . | nindent 8 }}
124124
{{- end }}
125-
{{- with .Values.controller.tolerations }}
125+
{{- with .Values.controller.tolerations | default .Values.global.tolerations }}
126126
tolerations:
127127
{{- toYaml . | nindent 8 }}
128128
{{- end }}

charts/argo-workflows/templates/server/server-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ spec:
128128
{{- with .Values.server.volumes }}
129129
{{- toYaml . | nindent 6}}
130130
{{- end }}
131-
{{- with .Values.server.nodeSelector }}
131+
{{- with .Values.server.nodeSelector | default .Values.global.nodeSelector }}
132132
nodeSelector:
133133
{{- toYaml . | nindent 8 }}
134134
{{- end }}
135-
{{- with .Values.server.tolerations }}
135+
{{- with .Values.server.tolerations | default .Values.global.tolerations }}
136136
tolerations:
137137
{{- toYaml . | nindent 8 }}
138138
{{- end }}

charts/argo-workflows/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
global:
2+
# -- Default node selector for all components
3+
nodeSelector: {}
4+
# -- Default tolerations for all components
5+
tolerations: []
6+
17
images:
28
# -- Common tag for Argo Workflows images. Defaults to `.Chart.AppVersion`.
39
tag: ""

0 commit comments

Comments
 (0)