Browse Source

9693: Fix comma-separated-list splitting of kubelet_enforce_node_allocatable (#9694)

See https://github.com/kubernetes-sigs/kubespray/issues/9693
pull/9713/head
Tristan 1 year ago
committed by GitHub
parent
commit
5fbbcedebc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2

2
roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2

@ -16,7 +16,7 @@ authorization:
mode: AlwaysAllow mode: AlwaysAllow
{% endif %} {% endif %}
{% if kubelet_enforce_node_allocatable is defined and kubelet_enforce_node_allocatable != "\"\"" %} {% if kubelet_enforce_node_allocatable is defined and kubelet_enforce_node_allocatable != "\"\"" %}
{% set kubelet_enforce_node_allocatable_list = kubelet_enforce_node_allocatable.split() %}
{% set kubelet_enforce_node_allocatable_list = kubelet_enforce_node_allocatable.split(",") %}
enforceNodeAllocatable: enforceNodeAllocatable:
{% for item in kubelet_enforce_node_allocatable_list %} {% for item in kubelet_enforce_node_allocatable_list %}
- {{ item }} - {{ item }}

Loading…
Cancel
Save