1
0
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:
moelsayed
2017-11-30 01:18:12 +02:00
parent 6fafe7bddc
commit 9807ce60df
3 changed files with 20 additions and 31 deletions

View File

@@ -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
}