kubernetes-csi-addons icon indicating copy to clipboard operation
kubernetes-csi-addons copied to clipboard

Updating the schedule on SC has no effect

Open black-dragon74 opened this issue 5 months ago • 0 comments

For ReclaimSpace and EncryptionKeyRotation if the schedule is updated on the StorageClass, the new schedule is not reflected on the PVC since:

  • We do not check the value of the annotation in SC event handler, if the annotation is already present on PVC, we do not reconcile it.
  • Even if we trigger a reconcile for the PVC somehow, the updated schedule from SC is never read since we read first from the PVC.

The aim is to:

  • Update the StorageClass event handler so that along with checking for missing annotation from the PVC it also checks if the value between them differs, if so, a reconcile should be triggered.
  • The parsing of schedule should be modified to follow the precedence: Namespace > StorageClass > PVC
  • While updating an existing CR, we should update the schedule annotation with the new value

black-dragon74 avatar Sep 12 '24 09:09 black-dragon74