Skip to content

Commit

Permalink
Allow setting priorityClassName on deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoordsij committed Apr 3, 2024
1 parent d143b33 commit dd1f4ce
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 @@ -110,6 +110,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 @@ -111,6 +111,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 @@ -108,6 +108,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 @@ -105,6 +105,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 dd1f4ce

Please sign in to comment.