From 682909e895619969812a70efe42ddebc39c861b4 Mon Sep 17 00:00:00 2001 From: Hassan Zamani Date: Sun, 29 Oct 2017 09:09:08 +0330 Subject: [PATCH] Fix apiserver manifest template There was an extra indention on the `--v` flag when enable_netword_policy is set and version < v1.8 --- .../master/templates/manifests/kube-apiserver.manifest.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 index 24889a74c..8405207e3 100644 --- a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 @@ -77,10 +77,8 @@ spec: - --runtime-config={{ conf }} {% endfor %} {% endif %} -{% if enable_network_policy %} - {% if kube_version | version_compare('v1.8', '<') %} +{% if enable_network_policy and kube_version | version_compare('v1.8', '<') } - --runtime-config=extensions/v1beta1/networkpolicies=true - {% endif %} {% endif %} - --v={{ kube_log_level }} - --allow-privileged=true