Skip to content

Commit

Permalink
refactor check for auto volume creation, more readable check
Browse files Browse the repository at this point in the history
  • Loading branch information
zsinnema committed Mar 25, 2022
1 parent f670c12 commit ecc3594
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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|quote)) }}
{{- if or (not (hasKey .app.harness.deployment.volume "auto")) .app.harness.deployment.volume.auto }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down

0 comments on commit ecc3594

Please sign in to comment.