From 02555d6a0a74c12740a15fbebd7c1e9a8eb2b785 Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Thu, 23 Jan 2025 02:22:38 +0530 Subject: [PATCH] refactor(charts): make priorityClassName template-able (#233) Signed-off-by: Niladri Halder --- deploy/helm/charts/templates/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/helm/charts/templates/deployment.yaml b/deploy/helm/charts/templates/deployment.yaml index cc0f86dd..6611f3ba 100644 --- a/deploy/helm/charts/templates/deployment.yaml +++ b/deploy/helm/charts/templates/deployment.yaml @@ -33,8 +33,8 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: - {{- with .Values.localpv.priorityClassName }} - priorityClassName: {{ . }} + {{- if .Values.localpv.priorityClassName }} + priorityClassName: {{ tpl .Values.localpv.priorityClassName . }} {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: