Fix jinja filters (#4470)
This commit is contained in:
parent
b2fa84af61
commit
4d39c1856e
1 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue