Skip to content

Commit 02555d6

Browse files
authored
refactor(charts): make priorityClassName template-able (#233)
Signed-off-by: Niladri Halder <[email protected]>
1 parent 9a097de commit 02555d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy/helm/charts/templates/deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ spec:
3333
{{- toYaml . | nindent 8 }}
3434
{{- end }}
3535
spec:
36-
{{- with .Values.localpv.priorityClassName }}
37-
priorityClassName: {{ . }}
36+
{{- if .Values.localpv.priorityClassName }}
37+
priorityClassName: {{ tpl .Values.localpv.priorityClassName . }}
3838
{{- end }}
3939
{{- with .Values.imagePullSecrets }}
4040
imagePullSecrets:

0 commit comments

Comments
 (0)