Remove runtime-config from kubeadm if empty (#6311)

This commit is contained in:
Florian Ruynat 2020-06-30 20:22:05 +02:00 committed by GitHub
parent 16ec5939c2
commit 2a82dff3ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ apiServer:
encryption-provider-config: {{ kube_cert_dir }}/secrets_encryption.yaml encryption-provider-config: {{ kube_cert_dir }}/secrets_encryption.yaml
{% endif %} {% endif %}
storage-backend: {{ kube_apiserver_storage_backend }} storage-backend: {{ kube_apiserver_storage_backend }}
{% if kube_api_runtime_config is defined %} {% if kube_api_runtime_config|length > 0 %}
runtime-config: {{ kube_api_runtime_config | join(',') }} runtime-config: {{ kube_api_runtime_config | join(',') }}
{% endif %} {% endif %}
allow-privileged: "true" allow-privileged: "true"