fix annotation value if it contains yaml syntax (#20187)

Signed-off-by: Stefan Schwarz <ssz@bitsbeats.com>
This commit is contained in:
foosinn
2020-01-20 03:59:36 -08:00
committed by Kubernetes Prow Robot
parent bed8b7c4dc
commit a9f58eb7ee
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -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:
@@ -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" . }}