Skip to content

Commit 98f594b

Browse files
authored
Merge pull request #195 from dannawang0221/clean-up-provider-specific
Clean up provider specfic code, remove provider related logic
2 parents 36d36a8 + 82a2ee5 commit 98f594b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

populator-machinery/controller.go

-7
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ type PopulatorParams struct {
185185
Pvc *corev1.PersistentVolumeClaim
186186
// PvcPrime is the temporary PVC created by volume populator
187187
PvcPrime *corev1.PersistentVolumeClaim
188-
// PV refers to the storage instance where data will be transferred, and it will be bound to the original PVC when the data transfer is complete
189-
PV *corev1.PersistentVolume
190188
// StorageClass is the original StorageClass Pvc refer to
191189
StorageClass *storagev1.StorageClass
192190
// Unstructured is the CR data source created by user
@@ -776,11 +774,6 @@ func (c *controller) syncPvc(ctx context.Context, key, pvcNamespace, pvcName str
776774
// We'll get called again later when the pvcPrime gets bounded
777775
return nil
778776
}
779-
pv, err := params.KubeClient.CoreV1().PersistentVolumes().Get(ctx, pvcPrime.Spec.VolumeName, metav1.GetOptions{})
780-
if err != nil {
781-
return err
782-
}
783-
params.PV = pv
784777

785778
err = c.providerFunctionConfig.PopulateFn(ctx, *params)
786779
if err != nil {

0 commit comments

Comments
 (0)