// GetPersistentStorage retrieves the current persistent storage configuration.
GetPersistentStorage retrieves the current persistent storage configuration.
// GetPersistentStorage retrieves the current persistent storage configuration .
func (o *Operator) GetPersistentStorage(ctx context.Context, key ops.SiteKey) (storage.PersistentStorage, error) {
	if o.cfg.OpenEBS == nil {
		return nil, trace.BadParameter("persistent storage is not configured")
	}
	ndmConfig, err := o.cfg.OpenEBS.GetNDMConfig()
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return storage.PersistentStorageFromNDMConfig(ndmConfig), nil
}
func ( o * Operator ) GetPersistentStorage ( ctx context . Context , key ops . SiteKey ) ( storage . PersistentStorage , error ) { if o . cfg . OpenEBS == nil { return nil , trace . BadParameter ( " " ) } ndmConfig , err := o . cfg . OpenEBS . GetNDMConfig ( ) if err != nil { return nil , trace . Wrap ( err ) } return storage . PersistentStorageFromNDMConfig ( ndmConfig ) , nil }
GetPersistentStorage retrieves the current persistent storage configuration.
GetPersistentStorage retrieves the current persistent storage configuration .