Open remram44 opened 9 months ago
Hi @remram44. PVC's when enabled can be used for mounting the plugins folder. You have to specify the volume in values.yaml
as well for PVC to bound with headlamp deployment.
volumes:
- name: example-volume
# Define your volume type and its attributes
persistentVolumeClaim:
claimName: your-pvc-name # This should match the name of the PersistentVolumeClaim you created
Does this answer your question?
That is a very unique take on a Helm chart. Why not just have a pluginsPersistentVolumeClaim
setting that actually does the work?
The idea behind keeping the volume and volumeMount values user configurable was to provide flexibility in the way the user wants to configure it. There can be cases when the user wants to use an existing pvc or use the same volumeMount in an init container to setup plugins etc.
If you want to use an existing PVC or custom PVCs the you don't need the persistentVolumeClaim
section, only the volumes
section of the chart.
Why not just have a pluginsPersistentVolumeClaim setting that actually does the work?
This seems like a good idea to make it more specific. Now we'd have to keep persistentVolumeClaim around for backwards compatibility.
If we don't include a pluginsPersistentVolumeClaim, probably we should at least improve the documentation so it's clear what it is for and what it can be used for.
Setting
persistentVolumeClaim.enabled
to true creates a PVC but it is not used for anything.