ensure we can override the complete PVC name for things like DB's, without prefix or suffix

This commit is contained in:
kjeld Schouten-Lebbing
2021-06-11 12:34:49 +02:00
parent b9d47404fa
commit 70a7b582fd
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -18,4 +18,4 @@ maintainers:
name: common
sources:
type: library
version: 6.1.0
version: 6.1.1
@@ -15,6 +15,9 @@ within the common library.
{{- $pvcName = printf "%v-%v" $pvcName $values.nameOverride -}}
{{ end -}}
{{ end }}
{{- if $values.forceName -}}
{{- $pvcName = $values.forceName -}}
{{ end }}
---
kind: PersistentVolumeClaim
apiVersion: v1
+4
View File
@@ -322,6 +322,10 @@ persistence:
# Valid options are pvc, emptyDir, hostPath or custom
type: pvc
# -- force the complete PVC name
# Will not add any prefix or suffix
forceName: ""
# -- Where to mount the volume in the main container.
# Defaults to `/<name_of_the_volume>`,
# setting to '-' creates the volume but disables the volumeMount.