mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-26 09:06:14 +00:00
The copied secret/configmap label value was the owner (DataUpload/ DataDownload) name, which is derived from the Backup/Restore name and can exceed the 63-char Kubernetes label-value limit or contain invalid characters. That would make the copy label and the cleanup selector diverge and orphan the copied resources. Use string(ownerObject.UID) consistently for the label value in both copy and cleanup (backup and restore exposers). The UID is a stable, always-valid label value. Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>