Fix jinja filters (#4470)

This commit is contained in:
Andreas Krüger 2019-04-09 11:19:06 +02:00 committed by Kubernetes Prow Robot
parent b2fa84af61
commit 4d39c1856e

View file

@ -14,7 +14,7 @@ data:
kubernetes {{ dns_domain }} in-addr.arpa ip6.arpa { kubernetes {{ dns_domain }} in-addr.arpa ip6.arpa {
pods insecure pods insecure
{% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %} {% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
upstream {{ upstream_dns_servers.join(' ') }} upstream {{ upstream_dns_servers|join(' ') }}
{% else %} {% else %}
upstream /etc/resolv.conf upstream /etc/resolv.conf
{% endif %} {% endif %}
@ -22,7 +22,7 @@ data:
} }
prometheus :9153 prometheus :9153
{% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %} {% if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 %}
forward . {{ upstream_dns_servers.join(' ') }} forward . {{ upstream_dns_servers|join(' ') }}
{% else %} {% else %}
forward . /etc/resolv.conf forward . /etc/resolv.conf
{% endif %} {% endif %}