restore storageclasses before pvs and pvcs

Signed-off-by: Wayne Witzel III <wayne@riotousliving.com>
This commit is contained in:
Wayne Witzel III
2018-11-01 11:31:19 -04:00
parent 6afadb1ad4
commit e8340d9f05

View File

@@ -364,6 +364,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
@@ -376,6 +377,7 @@ const (
// restored with their corresponding CRD.
var defaultResourcePriorities = []string{
"namespaces",
"storageclasses",
"persistentvolumes",
"persistentvolumeclaims",
"secrets",