func NewClientInCluster() (*Client, error) {
	config, err := rest.InClusterConfig()
	if err != nil {
		return nil, errors.Wrap(err, "failed to load kubeconfig in cluster")
	}

	clientset, err := kubernetes.NewForConfig(config)
	if err != nil {
		return nil, errors.Wrap(err, "falied to load clientset")
	}

	return &Client{
		clientset: clientset,
	}, nil
}
// NewClientInCluster creates Client object in Kubernetes cluster
NewClientInCluster creates Client object in Kubernetes cluster
// NewClientInCluster creates Client object in Kubernetes cluster
func NewClientInCluster() (*Client, error) {
	config, err := rest.InClusterConfig()
	if err != nil {
		return nil, errors.Wrap(err, "failed to load kubeconfig in cluster")
	}
	clientset, err := kubernetes.NewForConfig(config)
	if err != nil {
		return nil, errors.Wrap(err, "falied to load clientset")
	}
	return &Client{
		clientset: clientset,
	}, nil
}
func NewClientInCluster ( ) ( * Client , error ) { config , err := rest . InClusterConfig ( ) if err != nil { return nil , errors . Wrap ( err , " " ) } clientset , err := kubernetes . NewForConfig ( config ) if err != nil { return nil , errors . Wrap ( err , " " ) } return & Client { clientset : clientset , } , nil }
NewClientInCluster creates Client object in Kubernetes cluster
NewClientInCluster creates Client object in Kubernetes cluster