func FetchPersistentVolumes(cli client.Client, labelz map[string]string, volumes *[]corev1.PersistentVolume) error {
	opts := &client.ListOptions{
		LabelSelector: labels.SelectorFromSet(labelz),
	}

	list := &corev1.PersistentVolumeList{}
	if err := cli.List(context.TODO(), list, opts); err != nil {
		return err
	}
	volumes = &list.Items
	return nil
}
// FetchPersistentVolumes will return the list of PersistentVolumes that match the given labels.
FetchPersistentVolumes will return the list of PersistentVolumes that match the given labels.
// FetchPersistentVolumes will return the list of PersistentVolumes that match the given labels .
func FetchPersistentVolumes(cli client.Client, labelz map[string]string, volumes *[]corev1.PersistentVolume) error {
	opts := &client.ListOptions{
		LabelSelector: labels.SelectorFromSet(labelz),
	}
	list := &corev1.PersistentVolumeList{}
	if err := cli.List(context.TODO(), list, opts); err != nil {
		return err
	}
	volumes = &list.Items
	return nil
}
func FetchPersistentVolumes ( cli client . Client , labelz map [ string ] string , volumes * [ ] corev1 . PersistentVolume ) error { opts := & client . ListOptions { LabelSelector : labels . SelectorFromSet ( labelz ) , } list := & corev1 . PersistentVolumeList { } if err := cli . List ( context . TODO ( ) , list , opts ) ; err != nil { return err } volumes = & list . Items return nil }
FetchPersistentVolumes will return the list of PersistentVolumes that match the given labels.
FetchPersistentVolumes will return the list of PersistentVolumes that match the given labels .