mirror of https://github.com/kubernetes/kops.git
Merge pull request #6739 from justinsb/cherrypick_6272_release-1.11
Cherry pick of #6272 onto release-1.11
This commit is contained in:
commit
7f6e36eaab
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue