Change dns upstream condition for nodelocaldns (#9378)

This commit is contained in:
Unai Arríen 2022-10-11 09:47:02 +02:00 committed by GitHub
parent 3b99d24ceb
commit ef76a578a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@
{{ primaryClusterIP }} {{ primaryClusterIP }}
{%- endif -%} {%- endif -%}
upstreamForwardTarget: >- upstreamForwardTarget: >-
{%- if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 -%} {%- if upstream_dns_servers is defined and upstream_dns_servers|length > 0 -%}
{{ upstream_dns_servers|join(' ') }} {{ upstream_dns_servers|join(' ') }}
{%- else -%} {%- else -%}
/etc/resolv.conf /etc/resolv.conf
@ -61,7 +61,7 @@
{{ primaryClusterIP }} {{ primaryClusterIP }}
{%- endif -%} {%- endif -%}
upstreamForwardTarget: >- upstreamForwardTarget: >-
{%- if resolvconf_mode == 'host_resolvconf' and upstream_dns_servers is defined and upstream_dns_servers|length > 0 -%} {%- if upstream_dns_servers is defined and upstream_dns_servers|length > 0 -%}
{{ upstream_dns_servers|join(' ') }} {{ upstream_dns_servers|join(' ') }}
{%- else -%} {%- else -%}
/etc/resolv.conf /etc/resolv.conf