From ce7aa84d96e4126e56f89d4bf842f6a6d4cbb0fd Mon Sep 17 00:00:00 2001 From: sturman <4456572+sturman@users.noreply.github.com> Date: Wed, 3 Nov 2021 14:31:37 +0200 Subject: [PATCH] Do not set a priority class name in case it's not set in values --- moon/templates/deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moon/templates/deployment.yaml b/moon/templates/deployment.yaml index fba3d8f..8926dd3 100644 --- a/moon/templates/deployment.yaml +++ b/moon/templates/deployment.yaml @@ -33,7 +33,9 @@ spec: {{ toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ .Release.Name }} - priorityClassName: {{ .Values.moon.priorityClassName | default "default" }} + {{- if .Values.moon.priorityClassName }} + priorityClassName: {{ .Values.moon.priorityClassName }} + {{- end }} containers: - name: moon {{- if .Values.moon.image }}