From 60b0c9af6a95ca095cc3af04981d1328de6c21b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de> Date: Fri, 5 Nov 2021 12:29:30 +0100 Subject: [PATCH] Fix Helm chart errors --- helm/templates/_helpers.tpl | 2 +- helm/templates/theodolite/results-volume/pvc.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/templates/_helpers.tpl b/helm/templates/_helpers.tpl index 4aebdca5d..b530b553e 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 3f2340803..6dda16bc8 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: -- GitLab