// UpdateNDMConfig updates node device manager configuration.
UpdateNDMConfig updates node device manager configuration.
// UpdateNDMConfig updates node device manager configuration .
func (c *openEBSControl) UpdateNDMConfig(config *storage.NDMConfig) error {
	cm, err := config.ToConfigMap()
	if err != nil {
		return trace.Wrap(err)
	}
	c.Infof("Updating NDM config map: %v.", cm.Data)
	_, err = c.cm.Update(context.TODO(), cm, metav1.UpdateOptions{})
	if err != nil {
		return rigging.ConvertError(err)
	}
	return nil
}
func ( c * openEBSControl ) UpdateNDMConfig ( config * storage . NDMConfig ) error { cm , err := config . ToConfigMap ( ) if err != nil { return trace . Wrap ( err ) } c . Infof ( " " , cm . Data ) _ , err = c . cm . Update ( context . TODO ( ) , cm , metav1 . UpdateOptions { } ) if err != nil { return rigging . ConvertError ( err ) } return nil }
UpdateNDMConfig updates node device manager configuration.
UpdateNDMConfig updates node device manager configuration .