move serviceAccountName out of if block (#6783)

This commit is contained in:
Michael Raimondi
2018-07-24 00:03:24 -07:00
committed by k8s-ci-robot
parent f08e3d4b49
commit 0424e3c8b6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: redis
version: 3.7.0
version: 3.7.1
appVersion: 4.0.10
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:
@@ -30,10 +30,10 @@ spec:
{{- end}}
{{- end}}
{{- if .Values.metrics.nodeSelector }}
serviceAccountName: "{{ template "redis.serviceAccountName" . }}"
nodeSelector:
{{ toYaml .Values.metrics.nodeSelector | indent 8 }}
{{- end }}
serviceAccountName: "{{ template "redis.serviceAccountName" . }}"
{{- if .Values.metrics.tolerations }}
tolerations:
{{ toYaml .Values.metrics.tolerations | indent 8 }}