kubernetes-dynamic-reclaimable-pvc-controllers
kubernetes-dynamic-reclaimable-pvc-controllers copied to clipboard
Better association mechanism
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 asReleased- Releaser can't know it have to make itAvailable.
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.