1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-08 18:39:40 +00:00

Modify kubernetes version check to allow upgrade

This commit is contained in:
galal-hussein
2019-03-01 20:09:45 +02:00
committed by Alena Prokharchyk
parent 6d21f0eec2
commit 9d85116568
5 changed files with 179 additions and 65 deletions

View File

@@ -184,7 +184,7 @@ func InitClusterObject(ctx context.Context, rkeConfig *v3.RancherKubernetesEngin
return nil, fmt.Errorf("Failed to classify hosts from config file: %v", err)
}
// validate cluster configuration
if err := c.ValidateCluster(); err != nil {
if err := c.ValidateCluster(ctx); err != nil {
return nil, fmt.Errorf("Failed to validate cluster: %v", err)
}
return c, nil