openfun / arnold

:construction_worker_woman: Deploy your applications to Kubernetes with Ansible
MIT License
40 stars 8 forks source link

✨(apps) use variable to select PVC to use #780

Closed claudusd closed 1 year ago

claudusd commented 1 year ago

Purpose

The persistent volume name are hard-coded in the resources definition. This PR allow to override this name.

Proposal

Add a specific variable for each PVC to override the name. If the variable isn't defined we use the original name to avoid breaking change.

claudusd commented 1 year ago

@jmaupetit, I replace all default with the variable initialization in app default vars file.

lunika commented 1 year ago

You also missed to variabilize the PVC in each volumes file. This should also be made to be consistent.