diff --git a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 index c0ddf329b..a3b8a6f0a 100644 --- a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 @@ -83,7 +83,7 @@ spec: {% endif %} {% if apiserver_custom_flags is string %} - {{ apiserver_custom_flags }} -{% else % } +{% else %} {% for flag in apiserver_custom_flags %} - {{ flag }} {% endfor %} diff --git a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 index 1bdcc4324..b483047db 100644 --- a/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-controller-manager.manifest.j2 @@ -48,7 +48,7 @@ spec: {% endif %} {% if controller_mgr_custom_flags is string %} - {{ controller_mgr_custom_flags }} -{% else % } +{% else %} {% for flag in controller_mgr_custom_flags %} - {{ flag }} {% endfor %}