Add if block to daemonset annotations to not include field if nil (#14079)

Signed-off-by: ChiefAlexander <alex.harder@fishtech.group>
This commit is contained in:
Alex Harder
2019-05-22 23:20:25 -07:00
committed by Kubernetes Prow Robot
parent 68957fc6f8
commit 2969e2ddcd
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx-ingress
version: 1.6.12
version: 1.6.13
appVersion: 0.24.1
home: https://github.com/kubernetes/ingress-nginx
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
@@ -16,10 +16,12 @@ spec:
minReadySeconds: {{ .Values.controller.minReadySeconds }}
template:
metadata:
{{- if .Values.controller.podAnnotations }}
annotations:
{{- range $key, $value := .Values.controller.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
app: {{ template "nginx-ingress.name" . }}
component: "{{ .Values.controller.name }}"