mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-10 06:57:26 +00:00
Restore Endpoints before Services (#6317)
Restore Endpoints before Services Fixes #6280 Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
1
changelogs/unreleased/6317-ywk253100
Normal file
1
changelogs/unreleased/6317-ywk253100
Normal file
@@ -0,0 +1 @@
|
||||
Restore Endpoints before Services
|
||||
@@ -508,6 +508,7 @@ 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.
|
||||
// - Endpoints go before Services so no new Endpoints will be created
|
||||
// - Services go before Clusters so they can be adopted by AKO-operator and no new Services will be created
|
||||
// for the same clusters
|
||||
//
|
||||
@@ -538,6 +539,7 @@ var defaultRestorePriorities = restore.Priorities{
|
||||
// in the backup.
|
||||
"replicasets.apps",
|
||||
"clusterclasses.cluster.x-k8s.io",
|
||||
"endpoints",
|
||||
"services",
|
||||
},
|
||||
LowPriorities: []string{
|
||||
|
||||
@@ -71,7 +71,7 @@ func NewUploaderProvider(
|
||||
log logrus.FieldLogger,
|
||||
) (Provider, error) {
|
||||
if credGetter.FromFile == nil {
|
||||
return nil, errors.New("uninitialized FileStore credentail is not supported")
|
||||
return nil, errors.New("uninitialized FileStore credential is not supported")
|
||||
}
|
||||
if uploaderType == uploader.KopiaType {
|
||||
// We use the hardcode repositoryType velerov1api.BackupRepositoryTypeKopia for now, because we have only one implementation of unified repo.
|
||||
|
||||
Reference in New Issue
Block a user