diff --git a/pkg/cmd/server/server.go b/pkg/cmd/server/server.go index e29ea9b45..48162185d 100644 --- a/pkg/cmd/server/server.go +++ b/pkg/cmd/server/server.go @@ -438,6 +438,7 @@ func (s *server) validateBackupStorageLocations() error { } // - 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 @@ -450,6 +451,7 @@ func (s *server) validateBackupStorageLocations() error { // restored with their corresponding CRD. var defaultRestorePriorities = []string{ "namespaces", + "storageclasses", "persistentvolumes", "persistentvolumeclaims", "secrets",