|
77 | 77 | configMap: |
78 | 78 | name: {{ .Release.Name }}-st2-rbac-mappings |
79 | 79 | restartPolicy: OnFailure |
| 80 | + {{- with .Values.jobs.nodeSelector }} |
| 81 | + nodeSelector: {{- toYaml . | nindent 8 }} |
| 82 | + {{- end }} |
| 83 | + {{- with .Values.jobs.affinity }} |
| 84 | + affinity: {{- toYaml . | nindent 8 }} |
| 85 | + {{- end }} |
| 86 | + {{- with .Values.jobs.tolerations }} |
| 87 | + tolerations: {{- toYaml . | nindent 8 }} |
| 88 | + {{- end }} |
80 | 89 |
|
81 | 90 | {{- end }} |
82 | 91 | --- |
@@ -188,6 +197,15 @@ spec: |
188 | 197 | secret: |
189 | 198 | secretName: {{ .Release.Name }}-st2-apikeys |
190 | 199 | restartPolicy: OnFailure |
| 200 | + {{- with .Values.jobs.nodeSelector }} |
| 201 | + nodeSelector: {{- toYaml . | nindent 8 }} |
| 202 | + {{- end }} |
| 203 | + {{- with .Values.jobs.affinity }} |
| 204 | + affinity: {{- toYaml . | nindent 8 }} |
| 205 | + {{- end }} |
| 206 | + {{- with .Values.jobs.tolerations }} |
| 207 | + tolerations: {{- toYaml . | nindent 8 }} |
| 208 | + {{- end }} |
191 | 209 |
|
192 | 210 | --- |
193 | 211 | apiVersion: batch/v1 |
@@ -298,6 +316,15 @@ spec: |
298 | 316 | secret: |
299 | 317 | secretName: {{ .Release.Name }}-st2-kv |
300 | 318 | restartPolicy: OnFailure |
| 319 | + {{- with .Values.jobs.nodeSelector }} |
| 320 | + nodeSelector: {{- toYaml . | nindent 8 }} |
| 321 | + {{- end }} |
| 322 | + {{- with .Values.jobs.affinity }} |
| 323 | + affinity: {{- toYaml . | nindent 8 }} |
| 324 | + {{- end }} |
| 325 | + {{- with .Values.jobs.tolerations }} |
| 326 | + tolerations: {{- toYaml . | nindent 8 }} |
| 327 | + {{- end }} |
301 | 328 |
|
302 | 329 | --- |
303 | 330 | apiVersion: batch/v1 |
@@ -383,3 +410,12 @@ spec: |
383 | 410 | name: {{ .Release.Name }}-st2-pack-configs |
384 | 411 | {{- include "packs-volumes" $ | nindent 8 }} |
385 | 412 | restartPolicy: OnFailure |
| 413 | + {{- with .Values.jobs.nodeSelector }} |
| 414 | + nodeSelector: {{- toYaml . | nindent 8 }} |
| 415 | + {{- end }} |
| 416 | + {{- with .Values.jobs.affinity }} |
| 417 | + affinity: {{- toYaml . | nindent 8 }} |
| 418 | + {{- end }} |
| 419 | + {{- with .Values.jobs.tolerations }} |
| 420 | + tolerations: {{- toYaml . | nindent 8 }} |
| 421 | + {{- end }} |
0 commit comments