kubernetes-csi-addons
kubernetes-csi-addons copied to clipboard
Update precedence for schedule
This patch updates the schedule parsing logic in the following manner:
- A new configmap key is added:
schedule-precedence
. It can be one ofpvc-first
orsc-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.
- 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.
- 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.