mirror of
https://github.com/rancher/rke.git
synced 2025-08-28 19:31:04 +00:00
Merge pull request #250 from galal-hussein/remove_worker_checking
Fix check for worker hosts
This commit is contained in:
commit
0f3390f48f
@ -12,8 +12,8 @@ func (c *Cluster) ValidateCluster() error {
|
|||||||
if len(c.ControlPlaneHosts) == 0 {
|
if len(c.ControlPlaneHosts) == 0 {
|
||||||
return fmt.Errorf("Cluster must have at least one control plane host")
|
return fmt.Errorf("Cluster must have at least one control plane host")
|
||||||
}
|
}
|
||||||
if len(c.WorkerHosts) == 0 {
|
if len(c.EtcdHosts) == 0 {
|
||||||
return fmt.Errorf("Cluster must have at least one worker plane host")
|
return fmt.Errorf("Cluster must have at least one etcd plane host")
|
||||||
}
|
}
|
||||||
|
|
||||||
// validate hosts options
|
// validate hosts options
|
||||||
|
Loading…
Reference in New Issue
Block a user