use isKubernetesVersionGe go func in template
@@ -1021,9 +1021,7 @@ func (t *TemplateGenerator) getTemplateFuncMap(cs *api.ContainerService) templat
cs.Properties.OrchestratorProfile.OrchestratorVersion == common.DCOSVersion1Dot9Dot8)
},
"IsKubernetesVersionGe": func(version string) bool {
- orchestratorVersion, _ := semver.NewVersion(cs.Properties.OrchestratorProfile.OrchestratorVersion)
- constraint, _ := semver.NewConstraint(">=" + version)
- return cs.Properties.OrchestratorProfile.IsKubernetes() && constraint.Check(orchestratorVersion)
+ return cs.Properties.OrchestratorProfile.IsKubernetes() && common.IsKubernetesVersionGe(cs.Properties.OrchestratorProfile.OrchestratorVersion, version)
},
"IsKubernetesVersionLt": func(version string) bool {
orchestratorVersion, _ := semver.NewVersion(cs.Properties.OrchestratorProfile.OrchestratorVersion)
