From 0a63adfdc8ccf7bddd6f0d13abaada1cc67c75a7 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Wed, 13 Apr 2022 11:00:32 -0300 Subject: [PATCH] Try to circumvent rancher boolean set bug --- charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml b/charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml index cda6660..c680d87 100644 --- a/charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml +++ b/charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml @@ -34,8 +34,11 @@ data: format='%(levelname)s: %(message)s') import collective.recipe.backup.main - - {{- $bkpLocation := .Values.velero.backup.enabled | ternary "/data" "/backup" }} + + {{- $bkpLocation := "/backup" -}} + {{- if .Values.velero.backup.enabled -}} + {{- $bkpLocation = "/data" -}} + {{- end }} if __name__ == '__main__': sys.exit(collective.recipe.backup.main.backup_main(