Skip to content

Commit ecc3594

Browse files
committed
refactor check for auto volume creation, more readable check
1 parent f670c12 commit ecc3594

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • tools/cloudharness_utilities/deployment-configuration/helm/templates

tools/cloudharness_utilities/deployment-configuration/helm/templates/auto-volumes.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{{- define "deploy_utils.pvolume" }}
2-
{{- $auto_create := printf "%s" (.app.harness.deployment.volume.auto|quote) }}
3-
{{- if or (not (hasKey .app.harness.deployment.volume "auto")) (eq $auto_create (true|quote)) }}
2+
{{- if or (not (hasKey .app.harness.deployment.volume "auto")) .app.harness.deployment.volume.auto }}
43
apiVersion: v1
54
kind: PersistentVolumeClaim
65
metadata:

0 commit comments

Comments
 (0)