From 4e3353a48f9181625fbdf8b847ab878bd69d90e1 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sun, 20 Jun 2021 10:57:12 +0200 Subject: [PATCH] Fix a bug in storage forceName setting (#574) * Fix a bug in storage forceName setting * whoops --- charts/library/common/Chart.yaml | 2 +- charts/library/common/templates/lib/controller/_volumes.tpl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index 26c1567f281..36b877258e9 100644 --- a/charts/library/common/Chart.yaml +++ b/charts/library/common/Chart.yaml @@ -18,4 +18,4 @@ maintainers: name: common sources: type: library -version: 6.3.5 +version: 6.3.6 diff --git a/charts/library/common/templates/lib/controller/_volumes.tpl b/charts/library/common/templates/lib/controller/_volumes.tpl index e2aa485d185..6b1aec81a57 100644 --- a/charts/library/common/templates/lib/controller/_volumes.tpl +++ b/charts/library/common/templates/lib/controller/_volumes.tpl @@ -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 }}