Make sure output from extra args is strings
Setting the following: ``` kube_kubeadm_controller_extra_args: address: 0.0.0.0 terminated-pod-gc-threshold: "100" ``` Results in `terminated-pod-gc-threshold: 100` in the kubeadm config file. But it has to be a string to work.
This commit is contained in:
parent
710295bd2f
commit
788e41a315
1 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ apiServerExtraArgs:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
allow-privileged: "true"
|
allow-privileged: "true"
|
||||||
{% for key in kube_kubeadm_apiserver_extra_args %}
|
{% for key in kube_kubeadm_apiserver_extra_args %}
|
||||||
{{ key }}: {{ kube_kubeadm_apiserver_extra_args[key] }}
|
{{ key }}: {{ kube_kubeadm_apiserver_extra_args[key]|string }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
controllerManagerExtraArgs:
|
controllerManagerExtraArgs:
|
||||||
node-monitor-grace-period: {{ kube_controller_node_monitor_grace_period }}
|
node-monitor-grace-period: {{ kube_controller_node_monitor_grace_period }}
|
||||||
|
@ -69,12 +69,12 @@ controllerManagerExtraArgs:
|
||||||
feature-gates: {{ kube_feature_gates|join(',') }}
|
feature-gates: {{ kube_feature_gates|join(',') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for key in kube_kubeadm_controller_extra_args %}
|
{% for key in kube_kubeadm_controller_extra_args %}
|
||||||
{{ key }}: {{ kube_kubeadm_controller_extra_args[key] }}
|
{{ key }}: {{ kube_kubeadm_controller_extra_args[key]|string }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if kube_kubeadm_scheduler_extra_args|length > 0 %}
|
{% if kube_kubeadm_scheduler_extra_args|length > 0 %}
|
||||||
schedulerExtraArgs:
|
schedulerExtraArgs:
|
||||||
{% for key in kube_kubeadm_scheduler_extra_args %}
|
{% for key in kube_kubeadm_scheduler_extra_args %}
|
||||||
{{ key }}: {{ kube_kubeadm_scheduler_extra_args[key] }}
|
{{ key }}: {{ kube_kubeadm_scheduler_extra_args[key]|string }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
apiServerCertSANs:
|
apiServerCertSANs:
|
||||||
|
|
Loading…
Reference in a new issue