Skip to content

Commit

Permalink
feat: add option to set priorityClassName using helm values
Browse files Browse the repository at this point in the history
Signed-off-by: martijnvdp <m.vanderploeg@nl.ccv.eu>
  • Loading branch information
martijnvdp committed Jun 6, 2024
1 parent c6132f0 commit 878d23a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/helm/postee/templates/postee-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.posteUi.priorityClassName }}
{{- end }}
serviceAccountName: {{ include "postee.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
Expand Down Expand Up @@ -88,4 +91,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions deploy/helm/postee/templates/postee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
serviceAccountName: {{ include "postee.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
Expand Down
5 changes: 5 additions & 0 deletions deploy/helm/postee/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ posteUi:
# By default `tag` is taken from `.Chart.AppVersion`
# To use different version - uncomment this line and enter the desired version
# tag: ""
## set priorityClassName for the postee-ui deployment
# priorityClassName: system-cluster-critical

configuration:
# If set to true, ensure the externally generated secret to be named
Expand All @@ -213,6 +215,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

## set priorityClassName for the postee-ui deployment
# priorityClassName: system-cluster-critical

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down

0 comments on commit 878d23a

Please sign in to comment.