diff --git a/helm/templates/_helpers.tpl b/helm/templates/_helpers.tpl index 4aebdca5d2b0370cf93208a82d3c737e39bdd93c..b530b553ea90671aba8154cc250a20924bae0183 100644 --- a/helm/templates/_helpers.tpl +++ b/helm/templates/_helpers.tpl @@ -65,5 +65,5 @@ Create the name of the service account to use Create the name of the results volume to use */}} {{- define "theodolite.resultsClaimName" -}} -{{- default (include "theodolite.fullname" .)-results .Values.operator.resultsVolume.existingClaim }} +{{- default (printf "%s-results" (include "theodolite.fullname" .)) .Values.operator.resultsVolume.existingClaim }} {{- end }} diff --git a/helm/templates/theodolite/results-volume/pvc.yaml b/helm/templates/theodolite/results-volume/pvc.yaml index 3f234080377b420c10d695e7e60edafbae609393..6dda16bc85d308c8bf0c9c41dd55cca3582f0793 100644 --- a/helm/templates/theodolite/results-volume/pvc.yaml +++ b/helm/templates/theodolite/results-volume/pvc.yaml @@ -1,4 +1,4 @@ -{{- if and .Values.operator.resultsVolume.enabled (not .Values.operator.resultsVolume.existingClaim)) -}} +{{- if and .Values.operator.resultsVolume.enabled (not .Values.operator.resultsVolume.existingClaim) -}} apiVersion: v1 kind: PersistentVolumeClaim metadata: