Always create DataUpload configmap in restore namespace

Signed-off-by: Scott Seago <sseago@redhat.com>
pull/8621/head
Scott Seago 2025-01-15 16:26:45 -05:00
parent 054375093d
commit d090d0ad44
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Always create DataUpload configmap in restore namespace

View File

@ -94,7 +94,7 @@ func (d *DataUploadRetrieveAction) Execute(input *velero.RestoreItemActionExecut
}, },
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{
GenerateName: dataUpload.Name + "-", GenerateName: dataUpload.Name + "-",
Namespace: dataUpload.Namespace, Namespace: input.Restore.Namespace,
Labels: map[string]string{ Labels: map[string]string{
velerov1api.RestoreUIDLabel: label.GetValidName(string(input.Restore.UID)), velerov1api.RestoreUIDLabel: label.GetValidName(string(input.Restore.UID)),
velerov1api.PVCNamespaceNameLabel: label.GetValidName(dataUpload.Spec.SourceNamespace + "." + dataUpload.Spec.SourcePVC), velerov1api.PVCNamespaceNameLabel: label.GetValidName(dataUpload.Spec.SourceNamespace + "." + dataUpload.Spec.SourcePVC),