Fix version comparison for 1.9+ if few files
Change-Id: Ie9d0c5c88da4679de2784f9d16b20d35d013d491
diff --git a/kubernetes/files/manifest/kube-apiserver.manifest b/kubernetes/files/manifest/kube-apiserver.manifest
index e22ac90..afa0c4c 100644
--- a/kubernetes/files/manifest/kube-apiserver.manifest
+++ b/kubernetes/files/manifest/kube-apiserver.manifest
@@ -49,7 +49,7 @@
{%- if salt['pkg.version_cmp'](version,'1.8') >= 0 %}
--feature-gates=MountPropagation=true
{%- endif %}
- {%- if version|float >= 1.9 %}
+ {%- if salt['pkg.version_cmp'](version,'1.9') >= 0 %}
--endpoint-reconciler-type={{ master.apiserver.get('endpoint-reconciler', 'lease') }}
{%- else %}
--apiserver-count={{ master.apiserver.get('count', 1) }}
diff --git a/kubernetes/master/controller.sls b/kubernetes/master/controller.sls
index a735a6b..ef8966e 100644
--- a/kubernetes/master/controller.sls
+++ b/kubernetes/master/controller.sls
@@ -147,7 +147,7 @@
{%- if salt['pkg.version_cmp'](version,'1.8') >= 0 %}
--feature-gates=MountPropagation=true
{%- endif %}
-{%- if version|float >= 1.9 %}
+{%- if salt['pkg.version_cmp'](version,'1.9') >= 0 %}
--endpoint-reconciler-type={{ master.apiserver.get('endpoint-reconciler', 'lease') }}
{%- else %}
--apiserver-count={{ master.apiserver.get('count', 1) }}