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

Function generateClusterPVC

internal/controller/suite_test.go:384–396  ·  view source on GitHub ↗
(
	c client.Client,
	cluster *apiv1.Cluster,
	status persistentvolumeclaim.PVCStatus, //nolint:unparam
)

Source from the content-addressed store, hash-verified

382}
383
384func generateClusterPVC(
385 c client.Client,
386 cluster *apiv1.Cluster,
387 status persistentvolumeclaim.PVCStatus, //nolint:unparam
388) []corev1.PersistentVolumeClaim {
389 var idx int
390 var pvcs []corev1.PersistentVolumeClaim
391 for idx < cluster.Spec.Instances {
392 idx++
393 pvcs = append(pvcs, newFakePVC(c, cluster, idx, status)...)
394 }
395 return pvcs
396}
397
398func newFakePVC(
399 c client.Client,

Calls 1

newFakePVCFunction · 0.85

Tested by

no test coverage detected