Add .Values.persistentVolume.selfManaged so PVCs can be managed #120
Add .Values.persistentVolume.selfManaged so PVCs can be managed #120uberspot wants to merge 4 commits intoapache:mainfrom
Conversation
…de of the helm-chart for consistency and to prevent accidental deletions by helm.
|
How is this different from what |
|
Existing claims requires you to provide a ton of information for the actual PV objects and then tries to template them out. I tried using that and it was unnecessarily complex and unintuitive. |
You mean from a parent chart? You would still have to template out the PV and PVC and specify an existing |
|
Yeah I'm talking about manually created PVCs that then generate PVs themselves. That's how the Trident CSI works for example https://github.com/NetApp/trident |
|
Anyone who could review this? :) |
|
@uberspot the linter picked up a couple of trailing spaces. If you can address the errors and rebase (you'll need to bump the chart version), I'll get this merged. |
|
For what it's worth @yekibud I do think edit: I'm not even sure if either PRs work with couchdb in cluster mode? Isn't this block on the statefulset telling it to mount |
outside of the helm-chart for consistency and to prevent accidental deletions by helm.
What this PR does / why we need it:
Currently the chart manages the PVCs for the statefulset. Which means any re-installation of the chart will result in data loss unless snapshots/backups have been taken beforehand.
This PR allows for opting out of that behavior and managing the PVCs separately from the chart.
Anyone setting selfManaged: true will have to have taken a backup of the data before hand OR have modified the owner annotations on the PV/PVC resources to prevent their deletion.
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.