diff --git a/changelogs/unreleased/8621-sseago b/changelogs/unreleased/8621-sseago new file mode 100644 index 0000000000..5ddcb85f49 --- /dev/null +++ b/changelogs/unreleased/8621-sseago @@ -0,0 +1 @@ +Always create DataUpload configmap in restore namespace diff --git a/pkg/restore/actions/dataupload_retrieve_action.go b/pkg/restore/actions/dataupload_retrieve_action.go index d5b922d6f0..ef8bcb3337 100644 --- a/pkg/restore/actions/dataupload_retrieve_action.go +++ b/pkg/restore/actions/dataupload_retrieve_action.go @@ -94,7 +94,7 @@ func (d *DataUploadRetrieveAction) Execute(input *velero.RestoreItemActionExecut }, ObjectMeta: metav1.ObjectMeta{ GenerateName: dataUpload.Name + "-", - Namespace: dataUpload.Namespace, + Namespace: input.Restore.Namespace, Labels: map[string]string{ velerov1api.RestoreUIDLabel: label.GetValidName(string(input.Restore.UID)), velerov1api.PVCNamespaceNameLabel: label.GetValidName(dataUpload.Spec.SourceNamespace + "." + dataUpload.Spec.SourcePVC),