vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.61k stars 1.39k forks source link

Terminating namespace polling for each resource during restore #8234

Open anshulahuja98 opened 1 week ago

anshulahuja98 commented 1 week ago

EnsureNamespaceExistsAndIsReady

Problem: During restore for every resource within the namespace, we are calling the check to await on if namespace exists (wait for 10 min polling). For instance, if we have 100 resources in a namespace that itself is in terminating state for very long then it impacts the restore flow to get stuck/halt and it too increases the time to restore as it does it for each resource in the same namespace.

Originally posted by @mayankagg9722 in https://github.com/vmware-tanzu/velero/issues/7516#issuecomment-2022457069