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

Update precedence for schedule

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

This patch updates the schedule parsing logic in the following manner:

  • A new configmap key is added: schedule-precedence. It can be one of pvc-first or sc-first.
  • pvc-first is the current implementation we have, that considers the schedule in order of PVC > NS > SC.
  • sc-first is the new DS specific flag that only considers SCs as source of truth for schedule.
  • The default if no configmap is present will be pvc-first i.e. the current implementation.

This change aims to put the control of managing RS/KR operations to the Storage Admins.

If an application has specific needs, the Admin can grant the necessary RBACs so that the app owner can modify the schedule on RS/KR CronJobs. One would achive it in the following manner.

  1. Annotate the RS/KR CronJob with (keyrotation/reclaimspace).csiaddons.openshift.io/exclude=true
    • The value of the annotation can be anything and is not read.
  2. Edit the RS/KR CronJob and update the schedule field.

Once a CronJob has exclude set, the application owner is in control of the operations.

Note to reviewers: Please suggest better wordings for the used terms.

black-dragon74 avatar Sep 18 '24 14:09 black-dragon74