Address #424: Add CRDs to list of prioritized resources

Signed-off-by: Wayne Witzel III <wayne@riotousliving.com>
This commit is contained in:
Wayne Witzel III
2018-11-01 08:28:58 -04:00
parent 9a3a45d4eb
commit 6febabf334

View File

@@ -372,6 +372,8 @@ const (
// - 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 defaultResourcePriorities = []string{
"namespaces",
"persistentvolumes",
@@ -382,6 +384,7 @@ var defaultResourcePriorities = []string{
"limitranges",
"pods",
"replicaset",
"customresourcedefinitions",
}
func applyConfigDefaults(c *api.Config, logger logrus.FieldLogger) {