Skip to content

Commit

Permalink
Allow setting priorityClassName on deployments (#8870)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoordsij authored Apr 5, 2024
1 parent 3053c5b commit 7e19397
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/kubernetes-dashboard/templates/deployments/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ spec:
{{ toYaml . | nindent 8 }}
{{- end }}

{{- with .Values.app.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}

{{- if or .Values.api.nodeSelector .Values.app.scheduling.nodeSelector }}
nodeSelector:
{{- with .Values.api.nodeSelector }}
Expand Down
4 changes: 4 additions & 0 deletions charts/kubernetes-dashboard/templates/deployments/auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ spec:
{{ toYaml . | nindent 8 }}
{{- end }}

{{- with .Values.app.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}

{{- if or .Values.auth.nodeSelector .Values.app.scheduling.nodeSelector }}
nodeSelector:
{{- with .Values.auth.nodeSelector }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ spec:
{{ toYaml . | nindent 8 }}
{{- end }}

{{- with .Values.app.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}

{{- if or .Values.metricsScraper.nodeSelector .Values.app.scheduling.nodeSelector }}
nodeSelector:
{{- with .Values.metricsScraper.nodeSelector }}
Expand Down
4 changes: 4 additions & 0 deletions charts/kubernetes-dashboard/templates/deployments/web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ spec:
{{ toYaml . | nindent 8 }}
{{- end }}

{{- with .Values.app.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}

{{- if or .Values.web.nodeSelector .Values.app.scheduling.nodeSelector }}
nodeSelector:
{{- with .Values.web.nodeSelector }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kubernetes-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ app:
# Common labels & annotations shared across all deployed resources
labels: {}
annotations: {}
# Common priority class used for all deployed resources
priorityClassName: null
settings:
## Global dashboard settings
global:
Expand Down

0 comments on commit 7e19397

Please sign in to comment.