Update library/common/templates/class/velero/_schedule.tpl

This commit is contained in:
Kjeld Schouten
2024-02-06 22:20:47 +01:00
committed by GitHub
parent a69e94ce00
commit 697422c51a

View File

@@ -14,7 +14,7 @@ objectData:
{{- $rootCtx := .rootCtx -}}
{{- $objectData := .objectData }}
{{- $namespace := ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "Schedule" ) -}}
{{- $namespace := ( include "tc.v1.common.lib.metadata.namespace" (dict "rootCtx" $rootCtx "objectData" $objectData "caller" "Schedule" )) -}}
{{- $lookupBSL := (lookup "velero.io/v1" "BackupStorageLocation" "" "") -}}
{{- if and $lookupBSL $lookupBSL.items -}}
{{- with (index $lookupBSL.items 0) }}