mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-07-21 15:32:29 +00:00
0d6b5a4f9b
When a user specifies a Custom Resource Kind in a restore filter policy (e.g., kinds: [MyCustomKind]), the discovery helper fails to resolve it if the CRD hasn't been restored yet. This adds a peek-and-map fallback: if a resource type in the backup tarball doesn't match the resolved filters, Velero peeks at the actual Kind of the first item in the tarball and matches it against the user's original policy strings. Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>