From e8229b01a617659d152e1cd34acccae4b89bd3f9 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Tue, 6 Feb 2024 22:45:19 +0100 Subject: [PATCH] Update _schedule.tpl --- library/common/templates/class/velero/_schedule.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/common/templates/class/velero/_schedule.tpl b/library/common/templates/class/velero/_schedule.tpl index 9fcf2d5d..cf798fb7 100644 --- a/library/common/templates/class/velero/_schedule.tpl +++ b/library/common/templates/class/velero/_schedule.tpl @@ -19,8 +19,8 @@ objectData: {{- if and $lookupBSL $lookupBSL.items -}} {{- $lookupBSL = $lookupBSL.items -}} {{- end -}} - {{- with ( index $lookupBSL ( $lookupBSL | keys | first ) ) }} - {{- $namespace = .metadata.namespace -}} + {{- range $BSL := $lookupBSL -}} + {{- $namespace = $BSL.metadata.namespace -}} {{- end -}} --- apiVersion: velero.io/v1