Merge pull request #8228 from ywk253100/240919_restore_priority

Add the Carvel package related resources to the restore priority list
pull/8239/head
Daniel Jiang 2024-09-23 15:37:54 +08:00 committed by GitHub
commit 60e9277e98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
Add the Carvel package related resources to the restore priority list

View File

@ -105,6 +105,8 @@ var (
- CAPI Clusters come before ClusterResourceSets because failing to do so means the CAPI controller-manager will panic.
Both Clusters and ClusterResourceSets need to come before ClusterResourceSetBinding in order to properly restore workload clusters.
See https://github.com/kubernetes-sigs/cluster-api/issues/4105
- apps.kappctrl.k14s.io and packageinstalls.packaging.carvel.dev go after workloads(pod/replicaset/etc.), otherwise the controller may
creates new workloads before restoring them
*/
defaultRestorePriorities = types.Priorities{
HighPriorities: []string{
@ -135,6 +137,8 @@ var (
"clusterbootstraps.run.tanzu.vmware.com",
"clusters.cluster.x-k8s.io",
"clusterresourcesets.addons.cluster.x-k8s.io",
"apps.kappctrl.k14s.io",
"packageinstalls.packaging.carvel.dev",
},
}
)