Merge pull request #329 from Forest-L/dev

Update the judgment of nodes in a group
This commit is contained in:
KubeSphere CI Bot 2020-10-09 11:16:47 +08:00 committed by GitHub
commit 902f618437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,11 +236,11 @@ func (cfg *ClusterSpec) GroupHosts() *HostGroups {
fmt.Println("Incorrect nodeName under roleGroups/master in the config-sample.yaml, Please check before installing.")
os.Exit(0)
}
if len(etcdGroup) != len(clusterHostsGroups.Master) {
if len(etcdGroup) != len(clusterHostsGroups.Etcd) {
fmt.Println("Incorrect nodeName under roleGroups/etcd in the config-sample.yaml, Please check before installing.")
os.Exit(0)
}
if len(workerGroup) != len(clusterHostsGroups.Master) {
if len(workerGroup) != len(clusterHostsGroups.Worker) {
fmt.Println("Incorrect nodeName under roleGroups/work in the config-sample.yaml, Please check before installing.")
os.Exit(0)
}