From 6c5a919d2876aeee9f8a7f1787d641ec2fe98b21 Mon Sep 17 00:00:00 2001 From: Zoran Sinnema Date: Thu, 24 Mar 2022 13:51:53 +0100 Subject: [PATCH] #471 fixes volume creation for volume objects without the auto key --- .../deployment-configuration/helm/templates/auto-volumes.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cloudharness_utilities/deployment-configuration/helm/templates/auto-volumes.yaml b/tools/cloudharness_utilities/deployment-configuration/helm/templates/auto-volumes.yaml index 174d695b..3a566025 100644 --- a/tools/cloudharness_utilities/deployment-configuration/helm/templates/auto-volumes.yaml +++ b/tools/cloudharness_utilities/deployment-configuration/helm/templates/auto-volumes.yaml @@ -1,5 +1,6 @@ {{- define "deploy_utils.pvolume" }} -{{- if .app.harness.deployment.volume.auto }} +{{- $auto_create := printf "%s" (.app.harness.deployment.volume.auto|quote) }} +{{- if or (not (hasKey .app.harness.deployment.volume "auto")) (eq $auto_create "true") }} apiVersion: v1 kind: PersistentVolumeClaim metadata: