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:
committed by
Alena Prokharchyk
parent
6d21f0eec2
commit
9d85116568
@@ -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
|
||||
|
Reference in New Issue
Block a user