Skip to content

Commit 27da6e2

Browse files
ppastorfholyspectral
authored andcommitted
Added missing tolerations config for cert-upgrader and cve-updater cronjobs
1 parent 7644c8f commit 27da6e2

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

charts/core/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ Parameter | Description | Default | Notes
165165
`controller.certupgrader.priorityClassName` | cert upgrader priorityClassName. Must exist prior to helm deployment. Leave empty to disable. | `nil` |
166166
`controller.certupgrader.podLabels` | Specify the pod labels. | `{}` |
167167
`controller.certupgrader.podAnnotations` | Specify the pod annotations. | `{}` |
168+
`controller.certupgrader.tolerations` | List of node taints to tolerate | `[]` | other taints can be added after the default
168169
`controller.certupgrader.nodeSelector` | Enable and specify nodeSelector labels | `{}` |
169170
`controller.certupgrader.runAsUser` | Specify the run as User ID | `nil` |
170171
`controller.certupgrader.imagePullPolicy` | cert upgrader image pull policy | `IfNotPresent` |
@@ -282,6 +283,7 @@ Parameter | Description | Default | Notes
282283
`cve.updater.podLabels` | Specify the pod labels. | `{}` |
283284
`cve.updater.podAnnotations` | Specify the pod annotations. | `{}` |
284285
`cve.updater.schedule` | cronjob cve updater schedule | `0 0 * * *` |
286+
`cve.updater.tolerations` | List of node taints to tolerate | `[]` | other taints can be added after the default
285287
`cve.updater.nodeSelector` | Enable and specify nodeSelector labels | `{}` |
286288
`cve.updater.runAsUser` | Specify the run as User ID | `nil` |
287289
`cve.scanner.enabled` | If true, cve scanners will be deployed | `true` |

charts/core/templates/updater-cronjob.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ spec:
3434
imagePullSecrets:
3535
- name: {{ .Values.imagePullSecrets }}
3636
{{- end }}
37+
{{- if .Values.cve.updater.tolerations }}
38+
tolerations:
39+
{{ toYaml .Values.cve.updater.tolerations | indent 12 }}
40+
{{- end }}
3741
{{- if .Values.cve.updater.nodeSelector }}
3842
nodeSelector:
3943
{{ toYaml .Values.cve.updater.nodeSelector | indent 12 }}

charts/core/templates/upgrader-cronjob.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ spec:
4848
imagePullSecrets:
4949
- name: {{ .Values.imagePullSecrets }}
5050
{{- end }}
51+
{{- if .Values.controller.certupgrader.tolerations }}
52+
tolerations:
53+
{{ toYaml .Values.controller.certupgrader.tolerations | indent 12 }}
54+
{{- end }}
5155
{{- if .Values.controller.certupgrader.nodeSelector }}
5256
nodeSelector:
5357
{{ toYaml .Values.controller.certupgrader.nodeSelector | indent 12 }}

charts/core/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ controller:
309309
priorityClassName:
310310
podLabels: {}
311311
podAnnotations: {}
312+
tolerations: []
312313
nodeSelector:
313314
{}
314315
# key1: value1
@@ -557,6 +558,7 @@ cve:
557558
# memory: 256Mi
558559
podLabels: {}
559560
podAnnotations: {}
561+
tolerations: []
560562
nodeSelector:
561563
{}
562564
# key1: value1

0 commit comments

Comments
 (0)