Commit 1a5a7ebd authored by Brendan Burns's avatar Brendan Burns

Handle a missing apiserver flag better.

parent 121a291a
......@@ -17,6 +17,7 @@ limitations under the License.
package kubelet
import (
"fmt"
"net/http"
"os"
"os/exec"
......@@ -160,6 +161,9 @@ func getApiserverClient(authPath string, apiServerList util.StringList) (*client
if err != nil {
return nil, err
}
if len(apiServerList) < 1 {
return nil, fmt.Errorf("no apiservers specified.")
}
// TODO: adapt Kube client to support LB over several servers
if len(apiServerList) > 1 {
glog.Infof("Mulitple api servers specified. Picking first one")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment