From a9f58eb7ee2ceeef71d45734050900dc5d3a2742 Mon Sep 17 00:00:00 2001 From: foosinn Date: Mon, 20 Jan 2020 12:59:36 +0100 Subject: [PATCH] fix annotation value if it contains yaml syntax (#20187) Signed-off-by: Stefan Schwarz --- stable/mariadb/Chart.yaml | 2 +- stable/mariadb/templates/master-statefulset.yaml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/stable/mariadb/Chart.yaml b/stable/mariadb/Chart.yaml index 8b21d1a63a..7047fec054 100644 --- a/stable/mariadb/Chart.yaml +++ b/stable/mariadb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mariadb -version: 7.3.4 +version: 7.3.5 appVersion: 10.3.21 description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster. keywords: diff --git a/stable/mariadb/templates/master-statefulset.yaml b/stable/mariadb/templates/master-statefulset.yaml index a0a17b9693..c6ee9ef2a0 100644 --- a/stable/mariadb/templates/master-statefulset.yaml +++ b/stable/mariadb/templates/master-statefulset.yaml @@ -23,11 +23,9 @@ spec: {{- end }} template: metadata: - {{- if .Values.master.annotations }} + {{- with .Values.master.annotations }} annotations: - {{- range $key, $value := .Values.master.annotations }} - {{ $key }}: {{ $value }} - {{- end }} + {{- toYaml . | nindent 8 }} {{- end }} labels: app: {{ template "mariadb.name" . }}