From 176fca61375769f5757bc81f68f2574511987f94 Mon Sep 17 00:00:00 2001 From: Emanuele Massara Date: Thu, 28 Nov 2019 10:35:27 +0000 Subject: [PATCH] fix: annotation is created only if needed --- chart/flux/templates/memcached.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/flux/templates/memcached.yaml b/chart/flux/templates/memcached.yaml index 79c742b61..0a039e0bc 100755 --- a/chart/flux/templates/memcached.yaml +++ b/chart/flux/templates/memcached.yaml @@ -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: