[stable/postgresql] Fix invalid StatefulSet volumeClaimTemplates annotations if empty. (#9115)

Signed-off-by: Cédric de Saint Martin <cdesaintmartin@wiremind.fr>
This commit is contained in:
Cédric de Saint Martin
2018-11-13 07:56:35 -08:00
committed by k8s-ci-robot
parent f67cff610a
commit ecb09dc949
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: postgresql
version: 2.5.0
version: 2.5.1
appVersion: 10.6.0
description: Chart for PostgreSQL, an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.
keywords:
+3 -1
View File
@@ -163,10 +163,12 @@ spec:
volumeClaimTemplates:
- metadata:
name: data
{{- with .Values.persistence.annotations }}
annotations:
{{- range $key, $value := .Values.persistence.annotations }}
{{- range $key, $value := . }}
{{ $key }}: {{ $value }}
{{- end }}
{{- end }}
spec:
accessModes:
{{- range .Values.persistence.accessModes }}