From d1595c25fc056adf54940651505b6fd39fa8568b Mon Sep 17 00:00:00 2001 From: Michael Liermann Date: Wed, 12 Mar 2025 14:08:26 +0100 Subject: [PATCH] feat(_devops): support tolerations, affinities & node selector for cronjob --- charts/slo-reporting/templates/cronjob.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/charts/slo-reporting/templates/cronjob.yaml b/charts/slo-reporting/templates/cronjob.yaml index 8fe6699..5237943 100644 --- a/charts/slo-reporting/templates/cronjob.yaml +++ b/charts/slo-reporting/templates/cronjob.yaml @@ -26,4 +26,16 @@ spec: - '-X' - 'POST' - 'http://{{ include "slo-reporting.fullname" $ }}:{{ .Values.service.port }}/api/slo/_update' + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }}