mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
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:
parent
24b5b7e8d3
commit
9cd0fc70f1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user