Files
velero/changelogs
Shubham Pampattiwar ea1f23f3f6 Fix backup performance regression with includedNamespaces ["*"]
Commit 8ac8f49b5 ("Remove wildcard check from getNamespacesToList")
removed the optimization that prevented "*" from being expanded to
individual namespace names. This caused getNamespacesToList to return
all namespace names instead of "" (cross-namespace listing), resulting
in N separate API list calls per resource type instead of 1.

On clusters with many namespaces (e.g. 178 on an ACM cluster), this
means ~35,000 API calls instead of ~200, causing backups to take
18-20 minutes for just 8 items.

Restore the "*" special case in ShouldExpandWildcards so that plain
"*" is not expanded, and restore the ShouldInclude("*") check in
getNamespacesToList so that cross-namespace listing is used.

The restore fix from 8ac8f49b5 (fromBackup flag) is preserved since
restores already return false before reaching the "*" check.

Namespace exclusion continues to work correctly: the nsTracker filters
excluded namespace objects via ShouldInclude, and backupItem filters
namespace-scoped resources at line 124 of item_backupper.go.

Fixes #9869

Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
2026-06-10 10:04:14 -07:00
..
2018-11-16 16:00:35 -05:00
2018-11-16 16:00:35 -05:00
2018-11-16 16:00:35 -05:00
2018-11-16 16:00:35 -05:00
2019-02-04 17:35:22 -05:00
2023-03-09 14:24:51 +08:00
2019-05-15 09:45:19 -07:00
2019-05-19 13:42:16 -06:00
2019-11-07 08:20:22 -07:00
2021-09-07 23:03:12 -04:00
2022-11-25 17:14:52 +08:00
2023-08-18 16:05:50 +08:00
2024-06-13 11:21:00 +08:00
2024-10-22 18:30:26 +08:00
2025-03-28 11:38:14 +08:00
2025-08-27 17:43:42 +08:00
2026-04-27 12:05:17 +08:00