// New create restserver with config data
New create restserver with config data
// New create restserver with config data
func New(cfg Config) (APIServer, error) {
	client, err := common.NewK8sClient()
	if err != nil {
		return nil, fmt.Errorf("create client for clusterService failed")
	}
	s := &restServer{
		server:    newEchoInstance(),
		k8sClient: client,
		cfg:       cfg,
	}
	return s, nil
}
func New ( cfg Config ) ( APIServer , error ) { client , err := common . NewK8sClient ( ) if err != nil { return nil , fmt . Errorf ( " " ) } s := & restServer { server : newEchoInstance ( ) , k8sClient : client , cfg : cfg , } return s , nil }
New create restserver with config data
New create restserver with config data