Repository navigation
helm chart support for data volume with persistentVolumeClaim and claimName #11683
muellerst-hg
started this conversation in
Ideas
Replies: 1 comment 2 replies
|
I'd like to pick this up. I have a small change ready: a new |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
Problem
The current helm chart supports persistent storage through volumeClaimTemplates.
However if you do not provision storage in this way, but already have an existing PVC bound to a PV (e.g. with nfs), it's not possible to use this PVC with the current helm chart. The result is a fallback volume to emptyDir:
Current implementation
https://github.com/aquasecurity/trivy/blob/main/helm/trivy/templates/statefulset.yaml#L140C15-L140C50
Proposal
A solution could be an
existingClaimvalues option. When existingClaim is set, an existing PVC is used instead of creating a new one with volumeClaimTemplates.Proposed Implementation
untested, written without AI
Target
Kubernetes
Scanner
None
All reactions