Merge pull request #7591 from ylvmw/master

IsReachable() needs to give detailed error message.
pull/7560/head
Matthew Fisher 5 years ago committed by GitHub
commit 64ce6e6a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,7 @@ func (c *Client) IsReachable() error {
client, _ := c.Factory.KubernetesClientSet()
_, err := client.ServerVersion()
if err != nil {
return errors.New("Kubernetes cluster unreachable")
return fmt.Errorf("Kubernetes cluster unreachable: %s", err.Error())
}
return nil
}

Loading…
Cancel
Save