From 2a82dff3ae314e3fa4c8bb3a5844a4fb380fb343 Mon Sep 17 00:00:00 2001 From: Florian Ruynat Date: Tue, 30 Jun 2020 20:22:05 +0200 Subject: [PATCH] Remove runtime-config from kubeadm if empty (#6311) --- .../kubernetes/master/templates/kubeadm-config.v1beta2.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/master/templates/kubeadm-config.v1beta2.yaml.j2 b/roles/kubernetes/master/templates/kubeadm-config.v1beta2.yaml.j2 index 25a71c073..d8f8ada7a 100644 --- a/roles/kubernetes/master/templates/kubeadm-config.v1beta2.yaml.j2 +++ b/roles/kubernetes/master/templates/kubeadm-config.v1beta2.yaml.j2 @@ -158,7 +158,7 @@ apiServer: encryption-provider-config: {{ kube_cert_dir }}/secrets_encryption.yaml {% endif %} 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(',') }} {% endif %} allow-privileged: "true"