mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
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:
committed by
Kubernetes Prow Robot
parent
68957fc6f8
commit
2969e2ddcd
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user