mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 22:46:25 +00:00
allow single node deployments
This commit is contained in:
@@ -71,15 +71,6 @@ func validateHostsOptions(c *Cluster) error {
|
||||
return fmt.Errorf("Role [%s] for host (%d) is not recognized", role, i+1)
|
||||
}
|
||||
}
|
||||
k := 0
|
||||
for _, role := range host.Role {
|
||||
if role == services.ControlRole || role == services.WorkerRole {
|
||||
k++
|
||||
}
|
||||
}
|
||||
if k > 1 {
|
||||
return fmt.Errorf("Host (%d) can't contain both worker and controlplane roles", i+1)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user