Always create DataUpload configmap in restore namespace

Signed-off-by: Scott Seago <sseago@redhat.com>
This commit is contained in:
Scott Seago
2025-01-15 22:47:48 -05:00
parent 804d73c4f2
commit 233f3d0d56
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Always create DataUpload configmap in restore namespace
@@ -93,7 +93,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),