From 338238d08610e5d88e864cd297bf04d2059f47b4 Mon Sep 17 00:00:00 2001 From: Chia-liang Kao Date: Sat, 10 Feb 2018 03:49:49 +0800 Subject: [PATCH] Fix version comparison `FAILED! => {"changed": false, "msg": "AnsibleFilterError: Version comparison: unorderable types: str() < int()"}` --- .../master/templates/manifests/kube-apiserver.manifest.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 index 1242ad820..f8e33de14 100644 --- a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 @@ -102,7 +102,7 @@ spec: {% if kube_feature_gates %} - --feature-gates={{ kube_feature_gates|join(',') }} {% endif %} -{% if kube_version | version_compare('1.9', '>=') %} +{% if kube_version | version_compare('v1.9', '>=') %} - --requestheader-client-ca-file={{ kube_cert_dir }}/ca.pem - --requestheader-allowed-names=front-proxy-client - --requestheader-extra-headers-prefix=X-Remote-Extra-