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
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -18,4 +18,4 @@ maintainers:
name: common name: common
sources: sources:
type: library type: library
version: 6.3.5 version: 6.3.6
@@ -19,6 +19,9 @@ Volumes included by the controller.
{{- else -}} {{- else -}}
{{- $pvcName = (printf "%s-%s" (include "common.names.fullname" $) $index) -}} {{- $pvcName = (printf "%s-%s" (include "common.names.fullname" $) $index) -}}
{{- end -}} {{- end -}}
{{- if $persistence.forceName -}}
{{- $pvcName = $persistence.forceName -}}
{{- end -}}
{{- end }} {{- end }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ $pvcName }} claimName: {{ $pvcName }}