GetSnapshotList gathers the current list of VolumeSnapshots in a namespace
( ctx context.Context, crudClient client.Client, namespace string, )
| 169 | |
| 170 | // GetSnapshotList gathers the current list of VolumeSnapshots in a namespace |
| 171 | func GetSnapshotList( |
| 172 | ctx context.Context, |
| 173 | crudClient client.Client, |
| 174 | namespace string, |
| 175 | ) (*volumesnapshotv1.VolumeSnapshotList, error) { |
| 176 | list := &volumesnapshotv1.VolumeSnapshotList{} |
| 177 | err := crudClient.List(ctx, list, client.InNamespace(namespace)) |
| 178 | |
| 179 | return list, err |
| 180 | } |
| 181 | |
| 182 | const ( |
| 183 | // IsDefaultClassAnnotation is the annotation used to mark the default StorageClass |
no test coverage detected