diff --git a/moon/templates/moon.yaml b/moon/templates/moon.yaml index 239f330..38de8d4 100644 --- a/moon/templates/moon.yaml +++ b/moon/templates/moon.yaml @@ -4,7 +4,7 @@ kind: ServiceAccount metadata: name: {{ .Release.Name }} namespace: {{ .Release.Namespace }} - {{- if .Values.moon.serviceaccount.annotations }} + {{- if and .Values.moon.serviceaccount .Values.moon.serviceaccount.annotations }} annotations: {{- range $key, $value := .Values.moon.serviceaccount.annotations }} {{ $key }}: {{ $value | quote }}