Allow customizing restore order for Kubernetes controllers and their managed resources #4045
Labels
backlog
Enhancement/User
End-User Enhancement to Velero
kind/requirement
Kubernetes Resources
Pertains to backup/restoration of Kubernetes resources
Restore
Milestone
Describe the problem/challenge you have
[A description of the current limitation/problem/challenge that you are experiencing.]
When restore targets contain Kubernetes controllers, it 's possible to hit below issues:
time="2021-08-10T16:41:04Z" level=info msg="Attempting to restore Tier: securityops" logSource="pkg/restore/restore.go:1070" restore=velero/restore-48c089d0-03ed-4f30-8532-a2e9837bea94
time="2021-08-10T16:41:04Z" level=info msg="error restoring securityops: admission webhook "tiervalidator.antrea.tanzu.vmware.com" denied the request: tier securityops priority 50 overlaps with existing Tier" logSource="pkg/restore/restore.go:1133" restore=velero/restore-48c089d0-03ed-4f30-8532-a2e9837bea9
error restoring application: admission webhook "tiervalidator.antrea.tanzu.vmware.com" denied the request: tier application priority 250 overlaps with existing Tier"
Describe the solution you'd like
[A clear and concise description of what you want to happen.]
From default restore order, we can see controller Pods are restored before managed Custom Resources, so we may solve this problem by:
As for Antrea cluster, the order should be default restore order -> Tier CR -> Other Antrea CRs -> Antrea controller Pod -> Antrea controller replicaset and deployment -> Antrea MutatingWebhookConfiguration and ValidatingWebhookConfiguration
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Nowadays there are tons of workloads consist of controllers and operators, both disaster recovery and migration might hit this issue.
Environment:
velero version
): allkubectl version
): all/etc/os-release
): allVote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: