Skip to content

Commit

Permalink
Merge pull request #962 from domenicrosati/drosati/#424-crds-priority
Browse files Browse the repository at this point in the history
Add CRDs to list of prioritized resources
  • Loading branch information
ncdc authored Oct 19, 2018
2 parents fe19863 + 9952dfb commit 56da761
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -456,6 +458,7 @@ var defaultRestorePriorities = []string{
"limitranges",
"pods",
"replicaset",
"customresourcedefinitions",
}

func (s *server) initRestic() error {
Expand Down

0 comments on commit 56da761

Please sign in to comment.