From 7cec8233f2d58d074dbce0a58fe9012d00a3eb0a Mon Sep 17 00:00:00 2001 From: hmsayem Date: Wed, 20 Mar 2024 06:21:54 +0600 Subject: [PATCH] Pass schedule constraints to crd installer and cleaner job Signed-off-by: hmsayem --- charts/stash-enterprise/templates/cleaner/job.yaml | 12 ++++++++++++ .../templates/crd-installer/job.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/charts/stash-enterprise/templates/cleaner/job.yaml b/charts/stash-enterprise/templates/cleaner/job.yaml index c0df6b7f9..c684544a2 100644 --- a/charts/stash-enterprise/templates/cleaner/job.yaml +++ b/charts/stash-enterprise/templates/cleaner/job.yaml @@ -29,5 +29,17 @@ spec: imagePullPolicy: {{ .Values.imagePullPolicy }} securityContext: {{- toYaml .Values.cleaner.securityContext | nindent 10 }} + {{ - with .Values.nodeSelector }} + nodeSelector: + {{ - toYaml . | nindent 8 }} + {{ - end }} + {{ - with .Values.affinity }} + affinity: + {{ - toYaml . | nindent 8 }} + {{ - end }} + {{ - with .Values.tolerations }} + tolerations: + {{ - toYaml . | nindent 8 }} + {{ - end }} restartPolicy: Never {{ end }} diff --git a/charts/stash-enterprise/templates/crd-installer/job.yaml b/charts/stash-enterprise/templates/crd-installer/job.yaml index 1b4766066..559304fa8 100644 --- a/charts/stash-enterprise/templates/crd-installer/job.yaml +++ b/charts/stash-enterprise/templates/crd-installer/job.yaml @@ -25,5 +25,17 @@ spec: imagePullPolicy: {{ .Values.imagePullPolicy }} securityContext: {{- toYaml .Values.crdInstaller.securityContext | nindent 12 }} + {{ - with .Values.nodeSelector }} + nodeSelector: + {{ - toYaml . | nindent 8 }} + {{ - end }} + {{ - with .Values.affinity }} + affinity: + {{ - toYaml . | nindent 8 }} + {{ - end }} + {{ - with .Values.tolerations }} + tolerations: + {{ - toYaml . | nindent 8 }} + {{ - end }} restartPolicy: Never {{ end }}