make resticrepositories non-restorable resources (#1296)

Signed-off-by: Steve Kriss <krisss@vmware.com>
pull/1299/head
Steve Kriss 2019-03-18 12:38:37 -06:00 committed by KubeKween
parent de09fd7cdc
commit 183bea369d
2 changed files with 8 additions and 1 deletions

1
changelogs/1296-skriss Normal file
View File

@ -0,0 +1 @@
make resticrepositories non-restorable resources

View File

@ -1,5 +1,5 @@
/*
Copyright 2017 the Heptio Ark contributors.
Copyright 2017, 2019 the Velero contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -64,6 +64,12 @@ var nonRestorableResources = []string{
// https://github.com/heptio/velero/issues/622
"restores.ark.heptio.com",
"restores.velero.io",
// Restic repositories are automatically managed by Velero and will be automatically
// created as needed if they don't exist.
// https://github.com/heptio/velero/issues/1113
"resticrepositories.ark.heptio.com",
"resticrepositories.velero.io",
}
type restoreController struct {