Skip to content

Commit

Permalink
Pass schedule constraints to crd installer and cleaner job
Browse files Browse the repository at this point in the history
Signed-off-by: hmsayem <[email protected]>
  • Loading branch information
hmsayem committed Mar 20, 2024
1 parent 2b363d9 commit 7cec823
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/stash-enterprise/templates/cleaner/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
12 changes: 12 additions & 0 deletions charts/stash-enterprise/templates/crd-installer/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 7cec823

Please sign in to comment.