[incubator/zookeeper] fix annotations possibly having null values instead of objects (#17679)

Signed-off-by: Cade Markegard <cademarkegard@gmail.com>
This commit is contained in:
Cade Markegard
2019-10-16 14:36:39 -07:00
committed by Kubernetes Prow Robot
parent 06b1352ea8
commit 3bfc903cb3
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: zookeeper
home: https://zookeeper.apache.org/
version: 2.0.1
version: 2.0.2
appVersion: 3.5.5
description: Centralized service for maintaining configuration information, naming,
providing distributed synchronization, and providing group services.
@@ -7,10 +7,12 @@ metadata:
chart: {{ template "zookeeper.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.service.annotations }}}
annotations:
{{- with .Values.service.annotations }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
@@ -30,13 +30,13 @@ spec:
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.podAnnotations }}
annotations:
{{- if .Values.podAnnotations }}
## Custom pod annotations
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
spec:
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- if .Values.schedulerName }}