This commit is contained in:
Kjeld Schouten
2023-11-14 21:15:21 +01:00
parent 9283d3fe0a
commit efcffffa09
3 changed files with 4 additions and 4 deletions

View File

@@ -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 */}}

View File

@@ -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 */}}

View File

@@ -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 */}}