Address #424: Add CRDs to list of prioritized resources

Signed-off-by: Domenic Rosati <domenicrosati@gmail.com>
This commit is contained in:
Domenic Rosati
2018-10-18 22:42:37 -03:00
parent fe19863089
commit 9952dfb0ad

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 {