Fix whitespaces striping in Kubernetes api jinja template
@@ -30,12 +30,12 @@ KUBE_ADMISSION_CONTROL="--admission-control=Initializers,NamespaceLifecycle,Limi
# Add your own!
KUBE_API_ARGS="--advertise-address={{ grains['ip4_interfaces'][grains['gateway_iface']][0] }} \
--apiserver-count={{ salt['mine.get']('roles:kube-master', 'caasp_fqdn', expr_form='grain').values()|length }} \
-{% if salt['pillar.get']('cloud:provider', '') != '' -%}
+{%- if salt['pillar.get']('cloud:provider', '') != '' %}
--cloud-provider={{ pillar['cloud']['provider'] }} \
- {% if salt['pillar.get']('cloud:provider', '') == 'openstack' -%}
+ {%- if salt['pillar.get']('cloud:provider', '') == 'openstack' %}
--cloud-config=/etc/kubernetes/openstack-config \
- {% endif -%}
-{% endif -%}
+ {%- endif -%}
+{% endif %}
--tls-cert-file={{ pillar['ssl']['kube_apiserver_crt'] }} \
--tls-private-key-file={{ pillar['ssl']['kube_apiserver_key'] }} \
--tls-ca-file={{ pillar['ssl']['ca_file'] }} \
