mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 22:46:25 +00:00
Start cluster with only etcd nodes
This commit is contained in:
@@ -9,9 +9,7 @@ import (
|
||||
|
||||
func (c *Cluster) ValidateCluster() error {
|
||||
// make sure cluster has at least one controlplane/etcd host
|
||||
if len(c.ControlPlaneHosts) == 0 {
|
||||
return fmt.Errorf("Cluster must have at least one control plane host")
|
||||
}
|
||||
|
||||
if len(c.EtcdHosts) == 0 && len(c.Services.Etcd.ExternalURLs) == 0 {
|
||||
return fmt.Errorf("Cluster must have at least one etcd plane host")
|
||||
}
|
||||
|
Reference in New Issue
Block a user