Merge pull request #962 from domenicrosati/drosati/#424-crds-priority

Add CRDs to list of prioritized resources
This commit is contained in:
Andy Goldstein
2018-10-19 09:55:42 -04:00
committed by GitHub
+3
View File
@@ -446,6 +446,8 @@ 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.
// - Custom Resource Definitions come before Custom Resource so that they can be
// restored with their corresponding CRD.
var defaultRestorePriorities = []string{
"namespaces",
"persistentvolumes",
@@ -456,6 +458,7 @@ var defaultRestorePriorities = []string{
"limitranges",
"pods",
"replicaset",
"customresourcedefinitions",
}
func (s *server) initRestic() error {