From 596eea1b8c81e97362a14bb349e594ec54ebe339 Mon Sep 17 00:00:00 2001 From: Shubheksha Jalan Date: Sun, 21 Oct 2018 16:49:39 +0200 Subject: [PATCH] restore storageclasses before pvs and pvcs Signed-off-by: Shubheksha Jalan --- pkg/cmd/server/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cmd/server/server.go b/pkg/cmd/server/server.go index d78cc7783..5dd377f28 100644 --- a/pkg/cmd/server/server.go +++ b/pkg/cmd/server/server.go @@ -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 @@ -464,6 +465,7 @@ const ( // have restic restores run before controllers adopt the pods. var defaultRestorePriorities = []string{ "namespaces", + "storageclasses", "persistentvolumes", "persistentvolumeclaims", "secrets",