MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / GetSnapshotList

Function GetSnapshotList

tests/utils/storage/storage.go:171–180  ·  view source on GitHub ↗

GetSnapshotList gathers the current list of VolumeSnapshots in a namespace

(
	ctx context.Context,
	crudClient client.Client,
	namespace string,
)

Source from the content-addressed store, hash-verified

169
170// GetSnapshotList gathers the current list of VolumeSnapshots in a namespace
171func 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
182const (
183 // IsDefaultClassAnnotation is the annotation used to mark the default StorageClass

Callers 2

PrintClusterResourcesFunction · 0.92
DumpNamespaceObjectsFunction · 0.92

Calls 1

ListMethod · 0.45

Tested by

no test coverage detected