apiserver does not require a cloud provider or machine list

Currently the apiserver will not start unless a machine list or a
valid cloud provider is specified. This prevents a workflow that
manages machines solely through the minions API.

Fix the issue by changing the apiserver to only log a message that
the apiserver is being started with an empty machine list.

This patch results in a change in behavior. The apiserver will no
longer exit non-zero if a cloud provider or machine list is not
configured.
This commit is contained in:
Kelsey Hightower 2014-09-15 11:13:17 -07:00
parent 24b5b7e8d3
commit 9cd0fc70f1

View File

@ -60,7 +60,7 @@ func init() {
func verifyMinionFlags() {
if *cloudProvider == "" || *minionRegexp == "" {
if len(machineList) == 0 {
glog.Fatal("No machines specified!")
glog.Info("No machines specified!")
}
return
}