Fix a bug in storage forceName setting (#574)

* Fix a bug in storage forceName setting

* whoops
This commit is contained in:
Kjeld Schouten-Lebbing 2021-06-20 10:57:12 +02:00 committed by GitHub
parent be0192181a
commit 4e3353a48f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -18,4 +18,4 @@ maintainers:
name: common
sources:
type: library
version: 6.3.5
version: 6.3.6

View File

@ -19,6 +19,9 @@ Volumes included by the controller.
{{- else -}}
{{- $pvcName = (printf "%s-%s" (include "common.names.fullname" $) $index) -}}
{{- end -}}
{{- if $persistence.forceName -}}
{{- $pvcName = $persistence.forceName -}}
{{- end -}}
{{- end }}
persistentVolumeClaim:
claimName: {{ $pvcName }}