Skip to content

Commit

Permalink
restore storageclasses before pvs and pvcs
Browse files Browse the repository at this point in the history
Signed-off-by: Shubheksha Jalan <jshubheksha@gmail.com>
  • Loading branch information
shubheksha committed Oct 22, 2018
1 parent fe51be6 commit 596eea1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ const (
)

// - Namespaces go first because all namespaced resources depend on them.
// - Storage Classes are needed to create PVs and PVCs correctly.
// - PVs go before PVCs because PVCs depend on them.
// - PVCs go before pods or controllers so they can be mounted as volumes.
// - Secrets and config maps go before pods or controllers so they can be mounted
Expand All @@ -464,6 +465,7 @@ const (
// have restic restores run before controllers adopt the pods.
var defaultRestorePriorities = []string{
"namespaces",
"storageclasses",
"persistentvolumes",
"persistentvolumeclaims",
"secrets",
Expand Down

0 comments on commit 596eea1

Please sign in to comment.