Skip to content

Commit

Permalink
Add nodeSelector to cronJob helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
damemi committed Feb 9, 2021
1 parent f54df67 commit 1a50bef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/descheduler/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
{{- .Values.podLabels | toYaml | nindent 12 }}
{{- end }}
spec:
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/descheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ deschedulerPolicy:

priorityClassName: system-cluster-critical

nodeSelector: {}
# foo: bar

rbac:
# Specifies whether RBAC resources should be created
create: true
Expand Down

0 comments on commit 1a50bef

Please sign in to comment.