Skip to content
Snippets Groups Projects
Unverified Commit c8a61ec9 authored by Shelming.Song's avatar Shelming.Song Committed by GitHub
Browse files

optimize the format of evictionHard in kubelet-config.yaml template (#9204)

parent aeeae767
No related branches found
No related tags found
No related merge requests found
......@@ -104,10 +104,10 @@ systemReserved:
{% endif %}
{% if is_kube_master|bool and eviction_hard_control_plane is defined and eviction_hard_control_plane %}
evictionHard:
{{ eviction_hard_control_plane | to_nice_yaml(indent=2) }}
{{ eviction_hard_control_plane | to_nice_yaml(indent=2) | indent(2) }}
{% elif not is_kube_master|bool and eviction_hard is defined and eviction_hard %}
evictionHard:
{{ eviction_hard | to_nice_yaml(indent=2) }}
{{ eviction_hard | to_nice_yaml(indent=2) | indent(2) }}
{% endif %}
resolvConf: "{{ kube_resolv_conf }}"
{% if kubelet_config_extra_args %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment