Why is this PR required? What issue does it fix?:
LocalPV Device from openebs/dynamic-localpv-provisioner requires addition of ownerReference for the BDC to the PVC. This file is included in the vendor directory for the dynamic-localpv-provisioner repo.
Changes the input signature for WithOwnerReference method to empty interface to be able to get both (v1.PersistentVolumeClaim) and (apis.StoragePoolClaim) as input.
Adds reference block to issue ownerReference to PVC.
Why is this PR required? What issue does it fix?: LocalPV Device from openebs/dynamic-localpv-provisioner requires addition of ownerReference for the BDC to the PVC. This file is included in the vendor directory for the dynamic-localpv-provisioner repo.
The workflow involved here:
Ref: Cleanup of stale BDCs in https://github.com/openebs/openebs/issues/3263
What this PR does?:
reference
block to issue ownerReference to PVC.Signed-off-by: Niladri Halder niladri.halder@mayadata.io