// CanConnectToCluster verifies, naively, that the cluster can be connected to
// and return a basic result.
CanConnectToCluster verifies, naively, that the cluster can be connected to
and return a basic result.
// CanConnectToCluster verifies naively that the cluster can be connected to // and return a basic result .
func CanConnectToCluster() error {
	ctx := viper.GetString("context")
	client := cluster.Client.DiscoveryClient.RESTClient()
	if client.Get().Timeout(1*time.Second).Do().Error() != nil {
		return fmt.Errorf(kubeConnectError, ctx, ctx)
	}
	return nil
}
func CanConnectToCluster ( ) error { ctx := viper . GetString ( " " ) client := cluster . Client . DiscoveryClient . RESTClient ( ) if client . Get ( ) . Timeout ( 1 * time . Second ) . Do ( ) . Error ( ) != nil { return fmt . Errorf ( kubeConnectError , ctx , ctx ) } return nil }
CanConnectToCluster verifies, naively, that the cluster can be connected to
and return a basic result.
CanConnectToCluster verifies naively that the cluster can be connected to and return a basic result .