fix: annotation is created only if needed
@@ -18,8 +18,8 @@ spec:
release: {{ .Release.Name }}
template:
metadata:
- annotations:
{{- if .Values.memcached.annotations }}
+ annotations:
{{- .Values.memcached.annotations | toYaml | trimSuffix "\n" | nindent 8 }}
{{- end }}
labels:
