Optional RWX
Closed this issue · 2 comments
jortel commented
Integration with: konveyor/tackle2-hub#148
Goals:
- Only create CACHE PVC when supported by the cluster.
- Discontinue support for Addon CR to list volumes to be mounted.
- Support concept of a general CACHE (RWX) volume that is mounted on the Hub (by the operator) and each task pod (by the task manager).
Changes:
- Add new operator setting:
rwx_supported
(bool). Default: true - Rename all
maven-
settings torwx-
. - Rename all
tackle-maven-
resources totackle-cache-
. - The maven PVC no longer injected into the windup addon CR.
- When RWX is supported:
- Create PV and PVC
tackle-cache-
and mount in the Hub. - Set RWX_SUPPORTED Envar in the Hub and UI.
- Set CACHE_PVC in the Hub to the name of the PVC.
- Mount the bucket volume RWO in the Hub only when it does not exist.
- Create PV and PVC
- When RWX not supported:
- Mount the bucket volume RWO in the Hub. **Existing PVC must not be updated to preserve data in upgrades.
- The addon CRD needs to be updated.
- The admin addon no longer installed. CR to be removed.
jmontleon commented
For clarification, after discussion:
- The
maven-
PVC will be renamedrwx-
since it may be used for general purpose applications - As long as
rwx_supported
is settrue
the rwx PVC will be created. - On upgrade we will ensure the PVC with the old name is deleted (
state: absent
) and create the new rwx PVC - Going forward we wll create the bucket PVC as
RWO
. - If it already exists
RWX
we will not attempt to update it, as it is moderately complex (we'd have to stop or remove the deployment, ensure the PV reclaim policy is set to retain, delete the PVC and recreate it since the access mode is immutable), and not without risk. - The admin CR will be
state: absent
in all cases since it is no longer required and we wish to ensure it's removed. - The rwx mount on the hub container will be at /rwx and we will set the RWX_PATH env var to reflect this.
- RWX_PVC will contain the RWX PVC name
@jortel can you check and confirm that you agree?
jortel commented
@jmontleon I agree with your summary. I edit the description to reflect our discussion re: s/RWX/CACHE in places.