Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/redis] Do not set annotation field if there is no annotation. (
Browse files Browse the repository at this point in the history
…#7786)

Signed-off-by: Cédric de Saint Martin <[email protected]>
  • Loading branch information
desaintmartin authored and k8s-ci-robot committed Sep 24, 2018
1 parent c3bbcad commit 480a7f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/redis/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: redis
version: 4.0.0
version: 4.0.1
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:
Expand Down
4 changes: 2 additions & 2 deletions stable/redis/templates/redis-master-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
chart: {{ template "redis.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.master.service.annotations }}
annotations:
{{- if .Values.master.service.annotations }}
{{ toYaml .Values.master.service.annotations | indent 4 }}
{{ toYaml . | indent 4 }}
{{- end }}
spec:
type: {{ .Values.master.service.type }}
Expand Down

0 comments on commit 480a7f8

Please sign in to comment.