Skip to content

Commit

Permalink
Address #424: Add CRDs to list of prioritized resources
Browse files Browse the repository at this point in the history
Signed-off-by: Domenic Rosati <[email protected]>
  • Loading branch information
domenicrosati committed Oct 19, 2018
1 parent fe19863 commit 9952dfb
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 9952dfb

Please sign in to comment.