From 9cd0fc70f1ca852c903b18b0933991036b3b2fa1 Mon Sep 17 00:00:00 2001 From: Kelsey Hightower Date: Mon, 15 Sep 2014 11:13:17 -0700 Subject: [PATCH] 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. --- cmd/apiserver/apiserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/apiserver/apiserver.go b/cmd/apiserver/apiserver.go index 0812f573259..0a2208d15c8 100644 --- a/cmd/apiserver/apiserver.go +++ b/cmd/apiserver/apiserver.go @@ -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 }