From 09560dd5b7a81575804efdfb59aaff9264963aa4 Mon Sep 17 00:00:00 2001 From: Zoran Sinnema Date: Fri, 25 Mar 2022 16:29:26 +0100 Subject: [PATCH] refactor auto volume test auto create --- .../deployment-configuration/helm/templates/auto-volumes.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 3a566025..c6d220e9 100644 --- a/tools/cloudharness_utilities/deployment-configuration/helm/templates/auto-volumes.yaml +++ b/tools/cloudharness_utilities/deployment-configuration/helm/templates/auto-volumes.yaml @@ -1,6 +1,5 @@ {{- define "deploy_utils.pvolume" }} -{{- $auto_create := printf "%s" (.app.harness.deployment.volume.auto|quote) }} -{{- if or (not (hasKey .app.harness.deployment.volume "auto")) (eq $auto_create "true") }} +{{- if or (not (hasKey .app.harness.deployment.volume "auto")) .app.harness.deployment.volume.auto }} apiVersion: v1 kind: PersistentVolumeClaim metadata: