mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-03 11:45:20 +00:00
Merge pull request #6057 from ywk253100/230331_restore
Restore Services before Clusters
This commit is contained in:
1
changelogs/unreleased/6057-ywk253100
Normal file
1
changelogs/unreleased/6057-ywk253100
Normal file
@@ -0,0 +1 @@
|
||||
Restore Services before Clusters
|
||||
@@ -513,6 +513,9 @@ func (s *server) veleroResourcesExist() error {
|
||||
// - Replica sets go before deployments/other controllers so they can be explicitly
|
||||
// restored and be adopted by controllers.
|
||||
// - CAPI ClusterClasses go before Clusters.
|
||||
// - Services go before Clusters so they can be adopted by AKO-operator and no new Services will be created
|
||||
// for the same clusters
|
||||
|
||||
//
|
||||
// Low priorities:
|
||||
// - Tanzu ClusterBootstraps go last as it can reference any other kind of resources.
|
||||
@@ -541,6 +544,7 @@ var defaultRestorePriorities = restore.Priorities{
|
||||
// in the backup.
|
||||
"replicasets.apps",
|
||||
"clusterclasses.cluster.x-k8s.io",
|
||||
"services",
|
||||
},
|
||||
LowPriorities: []string{
|
||||
"clusterbootstraps.run.tanzu.vmware.com",
|
||||
|
||||
Reference in New Issue
Block a user