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: