mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 21:14:56 +00:00
Address #424: Add CRDs to list of prioritized resources
Signed-off-by: Wayne Witzel III <wayne@riotousliving.com>
This commit is contained in:
@@ -372,6 +372,8 @@ const (
|
||||
// - 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.
|
||||
// - Custom Resource Definitions come before Custom Resource so that they can be
|
||||
// restored with their corresponding CRD.
|
||||
var defaultResourcePriorities = []string{
|
||||
"namespaces",
|
||||
"persistentvolumes",
|
||||
@@ -382,6 +384,7 @@ var defaultResourcePriorities = []string{
|
||||
"limitranges",
|
||||
"pods",
|
||||
"replicaset",
|
||||
"customresourcedefinitions",
|
||||
}
|
||||
|
||||
func applyConfigDefaults(c *api.Config, logger logrus.FieldLogger) {
|
||||
|
||||
Reference in New Issue
Block a user