提交 3452e019 编写于 作者: P Piotr Bryk

Merge pull request #383 from bryk/fail--fast

Fail and quit the binary when cannot connect to K8s master on startup
......@@ -43,7 +43,7 @@ func main() {
apiserverClient, err := CreateApiserverClient(*argApiserverHost, new(ClientFactoryImpl))
if err != nil {
log.Print(err)
log.Fatalf("Error while initializing connection to Kubernetes master: %s. Quitting.", err)
}
heapsterRESTClient, err := CreateHeapsterRESTClient(*argHeapsterHost, apiserverClient)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册