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

This commit is contained in:
Pavel Martynov
2021-05-18 16:41:30 +03:00
committed by GitHub
parent 4b9f98f933
commit 29c2fbdbc1

View File

@ -50,14 +50,9 @@
{% for d in [ 'default.svc.' + dns_domain, 'svc.' + dns_domain ] + searchdomains|default([]) -%}
{{ dns_domain }}.{{ d }}./{{ d }}.{{ d }}./com.{{ d }}./
{%- endfor %}
cloud_resolver: >-
{%- if cloud_provider is defined and cloud_provider == 'gce' -%}
['169.254.169.254']
{%- elif cloud_provider is defined and cloud_provider == 'aws' -%}
['169.254.169.253']
{%- else -%}
[]
{%- endif -%}
cloud_resolver: "{{ ['169.254.169.254'] if cloud_provider is defined and cloud_provider == 'gce' else
['169.254.169.253'] if cloud_provider is defined and cloud_provider == 'aws' else
[] }}"
- name: check if kubelet is configured
stat: