Skip to content
Snippets Groups Projects
Unverified Commit 29c2fbdb authored by Pavel Martynov's avatar Pavel Martynov Committed by GitHub
Browse files

Fix cloud_resolver type from str to list (issue #7605) (#7606)

parent 4b9f98f9
No related branches found
No related tags found
No related merge requests found
...@@ -50,14 +50,9 @@ ...@@ -50,14 +50,9 @@
{% for d in [ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([]) -%} {% for d in [ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([]) -%}
{{ dns_domain }}.{{ d }}./{{ d }}.{{ d }}./com.{{ d }}./ {{ dns_domain }}.{{ d }}./{{ d }}.{{ d }}./com.{{ d }}./
{%- endfor %} {%- endfor %}
cloud_resolver: >- cloud_resolver: "{{ ['169.254.169.254'] if cloud_provider is defined and cloud_provider == 'gce' else
{%- if cloud_provider is defined and cloud_provider == 'gce' -%} ['169.254.169.253'] if cloud_provider is defined and cloud_provider == 'aws' else
['169.254.169.254'] [] }}"
{%- elif cloud_provider is defined and cloud_provider == 'aws' -%}
['169.254.169.253']
{%- else -%}
[]
{%- endif -%}
- name: check if kubelet is configured - name: check if kubelet is configured
stat: stat:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment