Skip to content

Commit 6316fa3

Browse files
feat(argo-events): global constraints (nodeSelector/tolerations) (#140)
1 parent 8de3f49 commit 6316fa3

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

charts/argo-events/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: v1.9.2-cap-CR-28072
33
description: A Helm chart for Argo Events, the event-driven workflow automation framework
44
name: argo-events
5-
version: 2.4.7-1-cap-CR-28072
5+
version: 2.4.7-2-cap-CR-28072
66
home: https://github.com/argoproj/argo-helm
77
icon: https://avatars.githubusercontent.com/u/30269780?s=200&v=4
88
keywords:
@@ -18,5 +18,5 @@ annotations:
1818
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
1919
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
2020
artifacthub.io/changes: |
21-
- kind: fixed
22-
description: Fixed eventsource restarting because of nil pointer
21+
- kind: changed
22+
description: Add default global tolerations and nodeSelector

charts/argo-events/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ done
124124
| global.additionalLabels | object | `{}` | Additional labels to add to all resources |
125125
| global.hostAliases | list | `[]` | Mapping between IP and hostnames that will be injected as entries in the pod's hosts files |
126126
| global.image.imagePullPolicy | string | `"IfNotPresent"` | If defined, a imagePullPolicy applied to all Argo Events deployments |
127+
| global.image.nodeSelector | object | `{}` | Default node selector for all components |
127128
| global.image.repository | string | `"quay.io/codefresh/argo-events"` | If defined, a repository applied to all Argo Events deployments |
128129
| global.image.tag | string | `""` | Overrides the global Argo Events image tag whose default is the chart appVersion |
130+
| global.image.tolerations | list | `[]` | Default tolerations for all components |
129131
| global.imagePullSecrets | list | `[]` | If defined, uses a Secret to pull an image from a private Docker registry or repository |
130132
| global.podAnnotations | object | `{}` | Annotations for the all deployed pods |
131133
| global.podLabels | object | `{}` | Labels for the all deployed pods |

charts/argo-events/templates/argo-events-controller/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ spec:
108108
{{- with .Values.controller.extraContainers }}
109109
{{- toYaml . | nindent 6 }}
110110
{{- end -}}
111-
{{- with .Values.controller.nodeSelector }}
111+
{{- with .Values.controller.nodeSelector | default .Values.global.nodeSelector }}
112112
nodeSelector:
113113
{{- toYaml . | nindent 8 }}
114114
{{- end }}
115-
{{- with .Values.controller.tolerations }}
115+
{{- with .Values.controller.tolerations | default .Values.global.tolerations}}
116116
tolerations:
117117
{{- toYaml . | nindent 8 }}
118118
{{- end }}

charts/argo-events/templates/argo-events-webhook/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ spec:
9191
resources:
9292
{{- toYaml . | nindent 10 }}
9393
{{- end }}
94-
{{- with .Values.webhook.nodeSelector }}
94+
{{- with .Values.webhook.nodeSelector | default .Values.global.nodeSelector }}
9595
nodeSelector:
9696
{{- toYaml . | nindent 8 }}
9797
{{- end }}
98-
{{- with .Values.webhook.tolerations }}
98+
{{- with .Values.webhook.tolerations | default .Values.global.tolerations }}
9999
tolerations:
100100
{{- toYaml . | nindent 8 }}
101101
{{- end }}

charts/argo-events/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ global:
3535
tag: ""
3636
# -- If defined, a imagePullPolicy applied to all Argo Events deployments
3737
imagePullPolicy: IfNotPresent
38+
# -- Default node selector for all components
39+
nodeSelector: {}
40+
# -- Default tolerations for all components
41+
tolerations: []
3842

3943
# -- If defined, uses a Secret to pull an image from a private Docker registry or repository
4044
imagePullSecrets: []

0 commit comments

Comments
 (0)