IsReachable() needs to give detailed error message.

Signed-off-by: ylvmw <yngliu@vmware.com>
Signed-off-by: Matheus Hunsche <matheus.hunsche@ifood.com.br>
pull/8840/head
ylvmw 6 years ago committed by Matheus Hunsche
parent 7af0525dc5
commit d0a4329ad3

@ -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