From efcffffa0998e12b439cf74f2627015d7ec10579 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Tue, 14 Nov 2023 21:15:21 +0100 Subject: [PATCH] hmm --- .../templates/spawner/velero/_backupstoragelocation.tpl | 2 +- library/common/templates/spawner/velero/_schedule.tpl | 2 +- .../templates/spawner/velero/_volumeSnapshotLocation.tpl | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/common/templates/spawner/velero/_backupstoragelocation.tpl b/library/common/templates/spawner/velero/_backupstoragelocation.tpl index c761bb37..a2634475 100644 --- a/library/common/templates/spawner/velero/_backupstoragelocation.tpl +++ b/library/common/templates/spawner/velero/_backupstoragelocation.tpl @@ -52,7 +52,7 @@ {{/* Set namespace to velero location or itself, just in case its used from within velero */}} {{- $operator := index $.Values.operator "velero" -}} - {{- $namespace := $operator.namespace | default ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "backupstoragelocation") ) -}} + {{- $namespace := $operator.namespace | default ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $ "objectData" $objectData "caller" "backupstoragelocation") ) -}} {{- $_ := set $objectData.namespace $namespace -}} {{/* Create secret with creds */}} diff --git a/library/common/templates/spawner/velero/_schedule.tpl b/library/common/templates/spawner/velero/_schedule.tpl index fcaf59a2..3733dfb2 100644 --- a/library/common/templates/spawner/velero/_schedule.tpl +++ b/library/common/templates/spawner/velero/_schedule.tpl @@ -52,7 +52,7 @@ {{/* Set namespace to velero location or itself, just in case its used from within velero */}} {{- $operator := index $.Values.operator "velero" -}} - {{- $namespace := $operator.namespace | default ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "backupstoragelocation") ) -}} + {{- $namespace := $operator.namespace | default ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $ "objectData" $objectData "caller" "backupstoragelocation") ) -}} {{- $_ := set $objectData.namespace $namespace -}} {{/* Call class to create the object */}} diff --git a/library/common/templates/spawner/velero/_volumeSnapshotLocation.tpl b/library/common/templates/spawner/velero/_volumeSnapshotLocation.tpl index 103b9dfd..449b4c0c 100644 --- a/library/common/templates/spawner/velero/_volumeSnapshotLocation.tpl +++ b/library/common/templates/spawner/velero/_volumeSnapshotLocation.tpl @@ -43,7 +43,7 @@ {{/* Set database to velero location or itself, just in case its used from within velero */}} {{- $operator := index $.Values.operator "velero" -}} - {{- $namespace := $operator.namespace | default ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "backupstoragelocation") ) -}} + {{- $namespace := $operator.namespace | default ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $ "objectData" $objectData "caller" "backupstoragelocation") ) -}} {{/* Perform validations */}} {{/* volumesnapshotlocations have a max name length of 253 */}} {{- include "tc.v1.common.lib.chart.names.validation" (dict "name" $objectName "length" 253) -}} @@ -56,7 +56,7 @@ {{/* Set namespace to velero location or itself, just in case its used from within velero */}} {{- $operator := index $.Values.operator "velero" -}} - {{- $namespace := $operator.namespace | default ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "backupstoragelocation") ) -}} + {{- $namespace := $operator.namespace | default ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $ "objectData" $objectData "caller" "backupstoragelocation") ) -}} {{- $_ := set $objectData.namespace $namespace -}} {{/* Create secret with creds */}}