mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
Merge pull request #329 from Forest-L/dev
Update the judgment of nodes in a group
This commit is contained in:
commit
902f618437
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue