[stable/redis] Avoid generating null annotations (#8588)

Signed-off-by: Eric Bailey <e.bailey@sportradar.com>
This commit is contained in:
Eric Bailey
2018-10-22 11:47:40 -07:00
committed by k8s-ci-robot
parent ae9e3f8ea4
commit 9dd5c9858c
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: redis
version: 4.2.1
version: 4.2.2
appVersion: 4.0.11
description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
keywords:
+2
View File
@@ -8,8 +8,10 @@ metadata:
chart: {{ template "redis.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- if .Values.metrics.service.annotations }}
annotations:
{{ toYaml .Values.metrics.service.annotations | indent 4 }}
{{- end }}
spec:
type: {{ .Values.metrics.service.type }}
{{ if eq .Values.metrics.service.type "LoadBalancer" -}} {{ if .Values.metrics.service.loadBalancerIP -}}
+1 -1
View File
@@ -8,8 +8,8 @@ metadata:
chart: {{ template "redis.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
annotations:
{{- if .Values.slave.service.annotations }}
annotations:
{{ toYaml .Values.slave.service.annotations | indent 4 }}
{{- end }}
spec: