( c client.Client, cluster *apiv1.Cluster, status persistentvolumeclaim.PVCStatus, //nolint:unparam )
| 382 | } |
| 383 | |
| 384 | func 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 | |
| 398 | func newFakePVC( |
| 399 | c client.Client, |
no test coverage detected