// GetNDMConfig returns node device manager configuration.
GetNDMConfig returns node device manager configuration.
// GetNDMConfig returns node device manager configuration .
func (c *openEBSControl) GetNDMConfig() (*storage.NDMConfig, error) {
	cm, err := c.cm.Get(context.TODO(), c.cmName, metav1.GetOptions{})
	if err != nil {
		return nil, rigging.ConvertError(err)
	}
	config, err := storage.NDMConfigFromConfigMap(cm)
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return config, nil
}
func ( c * openEBSControl ) GetNDMConfig ( ) ( * storage . NDMConfig , error ) { cm , err := c . cm . Get ( context . TODO ( ) , c . cmName , metav1 . GetOptions { } ) if err != nil { return nil , rigging . ConvertError ( err ) } config , err := storage . NDMConfigFromConfigMap ( cm ) if err != nil { return nil , trace . Wrap ( err ) } return config , nil }
GetNDMConfig returns node device manager configuration.
GetNDMConfig returns node device manager configuration .