Skip to content

Commit

Permalink
Don't die on TLS error
Browse files Browse the repository at this point in the history
  • Loading branch information
immesys committed Jan 25, 2019
1 parent 7fead5e commit 173d2e7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tools/apifrontend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,8 @@ func ProxyGRPCSecure(laddr string) *tls.Config {
}

cfg, err := certutils.GetAPIConfig(etcdClient)
if err != nil {
fmt.Printf("Could not initialize TLS: %v\n", err)
os.Exit(1)
}
if cfg == nil {
fmt.Printf("TLS config is incomplete, disabling secure endpoints\n")
fmt.Printf("TLS config is incomplete (%s), disabling secure endpoints\n", err)
return nil
}

Expand Down

0 comments on commit 173d2e7

Please sign in to comment.