From 0b8297c190ec5d92a4a135e2ced267515fb75cb6 Mon Sep 17 00:00:00 2001 From: martijnvdp Date: Thu, 6 Jun 2024 13:20:25 +0200 Subject: [PATCH] feat: add option to set priorityClassName using helm values Signed-off-by: martijnvdp --- deploy/helm/postee/templates/postee-ui.yaml | 5 ++++- deploy/helm/postee/templates/postee.yaml | 3 +++ deploy/helm/postee/values.yaml | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/deploy/helm/postee/templates/postee-ui.yaml b/deploy/helm/postee/templates/postee-ui.yaml index 3d467f6a..3ee4c1a1 100644 --- a/deploy/helm/postee/templates/postee-ui.yaml +++ b/deploy/helm/postee/templates/postee-ui.yaml @@ -25,6 +25,9 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} serviceAccountName: {{ include "postee.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} @@ -88,4 +91,4 @@ spec: {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} - {{- end }} \ No newline at end of file + {{- end }} diff --git a/deploy/helm/postee/templates/postee.yaml b/deploy/helm/postee/templates/postee.yaml index b9e47632..4a430940 100644 --- a/deploy/helm/postee/templates/postee.yaml +++ b/deploy/helm/postee/templates/postee.yaml @@ -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 }} diff --git a/deploy/helm/postee/values.yaml b/deploy/helm/postee/values.yaml index 0675c55a..ecf91e45 100644 --- a/deploy/helm/postee/values.yaml +++ b/deploy/helm/postee/values.yaml @@ -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 @@ -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