func New() (Client, error) {

	c := Client{}

	// get the kube cfg
	cfg, err := config.GetConfig()
	if err != nil {
		klog.Errorf("error getting cfg. %v", err)
		return c, err
	}

	c.cfg = cfg

	klog.V(2).Info("Client config created.")

	err = c.setNamespace()
	if err != nil {
		klog.Errorf("error setting namespace for client. %v", err)
		return c, err
	}

	klog.V(2).Infof("Namespace \"%s\" set for the client", c.namespace)

	err = c.InitClient()
	return c, err
}
// New creates a new client object using the default config
New creates a new client object using the default config
// New creates a new client object using the default config
func New() (Client, error) {
	c := Client{}
	cfg, err := config.GetConfig()
	if err != nil {
		klog.Errorf("error getting cfg. %v", err)
		return c, err
	}
	c.cfg = cfg
	klog.V(2).Info("Client config created.")
	err = c.setNamespace()
	if err != nil {
		klog.Errorf("error setting namespace for client. %v", err)
		return c, err
	}
	klog.V(2).Infof("Namespace \"%s\" set for the client", c.namespace)
	err = c.InitClient()
	return c, err
}
func New ( ) ( Client , error ) { c := Client { } cfg , err := config . GetConfig ( ) if err != nil { klog . Errorf ( " " , err ) return c , err } c . cfg = cfg klog . V ( 2 ) . Info ( " " ) err = c . setNamespace ( ) if err != nil { klog . Errorf ( " " , err ) return c , err } klog . V ( 2 ) . Infof ( " \" \" " , c . namespace ) err = c . InitClient ( ) return c , err }
New creates a new client object using the default config
New creates a new client object using the default config
// get the kube cfg