// NewOpenEBSContol returns a new OpenEBS controller for the provided client.
NewOpenEBSContol returns a new OpenEBS controller for the provided client.
// NewOpenEBSContol returns a new OpenEBS controller for the provided client .
func NewOpenEBSControl(config OpenEBSConfig) (*openEBSControl, error) {
	if err := config.CheckAndSetDefaults(); err != nil {
		return nil, trace.Wrap(err)
	}
	return &openEBSControl{
		FieldLogger: logrus.WithField(trace.Component, "openebs"),
		cm:          config.Client.CoreV1().ConfigMaps(config.Namespace),
		ds:          config.Client.AppsV1().DaemonSets(config.Namespace),
		cmName:      config.ConfigMapName,
		dsName:      config.DaemonSetName,
	}, nil
}
func NewOpenEBSControl ( config OpenEBSConfig ) ( * openEBSControl , error ) { if err := config . CheckAndSetDefaults ( ) ; err != nil { return nil , trace . Wrap ( err ) } return & openEBSControl { FieldLogger : logrus . WithField ( trace . Component , " " ) , cm : config . Client . CoreV1 ( ) . ConfigMaps ( config . Namespace ) , ds : config . Client . AppsV1 ( ) . DaemonSets ( config . Namespace ) , cmName : config . ConfigMapName , dsName : config . DaemonSetName , } , nil }
NewOpenEBSContol returns a new OpenEBS controller for the provided client.
NewOpenEBSContol returns a new OpenEBS controller for the provided client .