kubernetes-dynamic-reclaimable-pvc-controllers icon indicating copy to clipboard operation
kubernetes-dynamic-reclaimable-pvc-controllers copied to clipboard

Better association mechanism

Open dee-kryvenko opened this issue 2 years ago • 0 comments
trafficstars

From the README:

Once Released - PVs doesn't have any indication that they were once associated with a PVC that had association with this Controller ID. To establish this relation - we must catch it while PVC still exists and mark it with our label. If Releaser was down the whole time PVC existed - PV could never be associated making it now orphaned and it will stay as Released - Releaser can't know it have to make it Available.

This seems to become an issue. I am starting to get orphaned volumes because informers are not firing off until after PVC is already gone. There may be a bug in the informers code, but I had an idea to get a more reliable association mechanism that would not rely on a chance.

Can use annotation on the Storage Class to notify Releaser that the volume is up for release.

dee-kryvenko avatar Dec 07 '22 02:12 dee-kryvenko