Skip to content

Commit ff4dd78

Browse files
committed
Clean up provider specfic code, remove provider related logic
1 parent 9565fa7 commit ff4dd78

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

populator-machinery/controller.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -771,11 +771,6 @@ func (c *controller) syncPvc(ctx context.Context, key, pvcNamespace, pvcName str
771771
// We'll get called again later when the pvcPrime gets bounded
772772
return nil
773773
}
774-
pv, err := params.KubeClient.CoreV1().PersistentVolumes().Get(ctx, pvcPrime.Spec.VolumeName, metav1.GetOptions{})
775-
if err != nil {
776-
return err
777-
}
778-
params.PV = pv
779774

780775
err = c.providerFunctionConfig.PopulateFn(ctx, *params)
781776
if err != nil {
@@ -792,7 +787,7 @@ func (c *controller) syncPvc(ctx context.Context, key, pvcNamespace, pvcName str
792787
return err
793788
}
794789
if !complete {
795-
//TODO: Revisited if there is a better way to requeue pvc than return an error
790+
// TODO: Revisited if there is a better way to requeue pvc than return an error
796791
// Return error to force reque pvc. We'll get called again later when the population operation complete
797792
return fmt.Errorf(reasonWaitForDataPopulationFinished)
798793
}

0 commit comments

Comments
 (0)