From 045962725bd66e83ff0f88323fa9b5c95560788d Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Wed, 13 Apr 2022 09:33:24 -0300 Subject: [PATCH] Fix issue with repozo backup location for velero --- .../v0.5.0/templates/repozo-configmap.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml b/charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml index 8995fbe..aacde4f 100644 --- a/charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml +++ b/charts/portalmodelo/v0.5.0/templates/repozo-configmap.yaml @@ -35,15 +35,17 @@ data: import collective.recipe.backup.main + {{- $bkpLocation := .Values.velero.backup.enabled | ternary "/data" "/backup" -}} + if __name__ == '__main__': sys.exit(collective.recipe.backup.main.backup_main( bin_dir='/plone/instance/bin', - storages=[{'backup_location': '/backup/backups', - 'blob_backup_location': '/backup/blobstoragebackups', - 'blob_snapshot_location': '/backup/blobstoragesnapshots', + storages=[{'backup_location': '{{ $bkpLocation }}/backups', + 'blob_backup_location': '{{ $bkpLocation }}/blobstoragebackups', + 'blob_snapshot_location': '{{ $bkpLocation }}/blobstoragesnapshots', 'blobdir': '/data/blobstorage', 'datafs': '/data/filestorage/Data.fs', - 'snapshot_location': '/backup/snapshotbackups', + 'snapshot_location': '{{ $bkpLocation }}/snapshotbackups', 'storage': '1'}], keep={{ .Values.repozo.keep }}, keep_blob_days={{ .Values.repozo.keepblobdays }},