mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-08 22:23:15 +00:00
add replicasets.apps to prioritized restore resources (#2120)
* add replicasets.apps to prioritized restore resources Signed-off-by: Steve Kriss <krisss@vmware.com> * changelog Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
committed by
Nolan Brubaker
parent
bbaa0196d1
commit
96297ea437
@@ -450,6 +450,9 @@ func (s *server) validateBackupStorageLocations() error {
|
||||
// - Limit ranges go before pods or controllers so pods can use them.
|
||||
// - Pods go before controllers so they can be explicitly restored and potentially
|
||||
// have restic restores run before controllers adopt the pods.
|
||||
// - Replica sets go before deployments/other controllers so they can be explicitly
|
||||
// restored and be adopted. Restore from both the 'apps' and 'extensions' API group,
|
||||
// in that order, since they existed in both prior to v1.16.
|
||||
// - Custom Resource Definitions come before Custom Resource so that they can be
|
||||
// restored with their corresponding CRD.
|
||||
var defaultRestorePriorities = []string{
|
||||
@@ -462,7 +465,10 @@ var defaultRestorePriorities = []string{
|
||||
"serviceaccounts",
|
||||
"limitranges",
|
||||
"pods",
|
||||
"replicaset",
|
||||
"replicasets.apps",
|
||||
// TODO(sk): delete the following line once we no longer support Kubernetes
|
||||
// versions prior to v1.16.
|
||||
"replicasets.extensions",
|
||||
"customresourcedefinitions",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user