Skip to content

Commit

Permalink
Merge branch 'release-1.10' into release-1.10
Browse files Browse the repository at this point in the history
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com>
  • Loading branch information
blackpiglet authored Apr 3, 2023
2 parents d3a76c7 + 1d81eea commit de3d308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/6058-ywk253100
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restore Services before Clusters
3 changes: 3 additions & 0 deletions pkg/cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,8 @@ 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.
Expand Down Expand Up @@ -536,6 +538,7 @@ var defaultRestorePriorities = restore.Priorities{
// in the backup.
"replicasets.apps",
"clusterclasses.cluster.x-k8s.io",
"services",
},
LowPriorities: []string{
"clusterbootstraps.run.tanzu.vmware.com",
Expand Down

0 comments on commit de3d308

Please sign in to comment.