Skip to content

Commit

Permalink
Detect for null values
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-jy committed Apr 9, 2021
1 parent 0dc3652 commit 97f3099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moon/templates/moon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 97f3099

Please sign in to comment.