Merge pull request #6739 from justinsb/cherrypick_6272_release-1.11

Cherry pick of #6272 onto release-1.11
This commit is contained in:
Kubernetes Prow Robot 2019-04-06 18:24:26 -07:00 committed by GitHub
commit 7f6e36eaab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ func hasPlaceHolderIP(clusterName string) (bool, error) {
config, err := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(
clientcmd.NewDefaultClientConfigLoadingRules(),
&clientcmd.ConfigOverrides{CurrentContext: clusterName}).ClientConfig()
if err != nil {
return false, fmt.Errorf("error building configuration: %v", err)
}
apiAddr, err := url.Parse(config.Host)
if err != nil {