ensure we can override the complete PVC name for things like DB's, without prefix or suffix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user