mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-25 16:46:19 +00:00
- Fix premature deletion of shared secrets/configmaps: check owner label in addition to data equality. Same data + different owner is now a collision, preventing one DataUpload's CleanUp from removing resources another DataUpload is still using. - Copy BinaryData in CopyConfigMap and include it in the equality check, so configmaps with binary payloads (e.g., CA bundles) are not silently truncated. - Add UID preconditions to DeleteSecretsWithLabel and DeleteConfigMapsWithLabel to avoid TOCTOU races where a recreated object with the same name could be deleted. - Move secret/configmap copy to the beginning of Expose(), before any intermediate objects are created, so failure doesn't require cleanup. Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>