зеркало из https://github.com/Azure/acs-engine.git
fixed version checking for managed clusters (#2226)
This commit is contained in:
Родитель
bc4f552d35
Коммит
79a057ffb5
|
@ -192,7 +192,7 @@ func (a *Apiloader) LoadContainerServiceForAgentPoolOnlyCluster(contents []byte,
|
|||
return nil, e
|
||||
}
|
||||
// verify orchestrator version
|
||||
if !common.AllKubernetesSupportedVersions[managedCluster.Properties.KubernetesVersion] {
|
||||
if len(managedCluster.Properties.KubernetesVersion) > 0 && !common.AllKubernetesSupportedVersions[managedCluster.Properties.KubernetesVersion] {
|
||||
return nil, a.Translator.Errorf("The selected orchestrator version '%s' is not supported", managedCluster.Properties.KubernetesVersion)
|
||||
}
|
||||
if e := managedCluster.Properties.Validate(); validate && e != nil {
|
||||
|
|
Загрузка…
Ссылка в новой задаче