mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 17:16:59 +02:00
Add guards for empty map in other required areas
This commit is contained in:
parent
ec5fefe4ee
commit
a3d019d560
@ -184,6 +184,7 @@ spec:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if eq $providerName "webhook" }}
|
||||
{{- if kindIs "map" .Values.provider }}
|
||||
{{- if .Values.provider.webhook.sidecar }}
|
||||
{{- with .Values.provider.webhook.sidecar }}
|
||||
- name: webhook
|
||||
@ -222,6 +223,7 @@ spec:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if or .Values.secretConfiguration.enabled .Values.extraVolumes }}
|
||||
volumes:
|
||||
{{- if .Values.secretConfiguration.enabled }}
|
||||
|
@ -27,6 +27,7 @@ spec:
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
{{- if eq $providerName "webhook" }}
|
||||
{{- if kindIs "map" .Values.provider }}
|
||||
{{- if .Values.provider.webhook.sidecar }}
|
||||
{{- with .Values.provider.webhook.sidecar.service }}
|
||||
- name: http-webhook
|
||||
@ -36,3 +37,4 @@ spec:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
@ -50,6 +50,7 @@ spec:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if eq $providerName "webhook" }}
|
||||
{{- if kindIs "map" .Values.provider }}
|
||||
{{- if .Values.provider.webhook.sidecar }}
|
||||
{{- with .Values.provider.webhook.sidecar.serviceMonitor }}
|
||||
- port: http-webhook
|
||||
@ -81,6 +82,7 @@ spec:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.serviceMonitor.targetLabels }}
|
||||
targetLabels:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
|
Loading…
Reference in New Issue
Block a user