mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
Issue 6693: partially fail restore if CSI snapshot is involved but CSI feature is not ready
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -27,17 +27,21 @@ type PluginFinder interface {
|
||||
Find(kind common.PluginKind, name string) bool
|
||||
}
|
||||
|
||||
type Verifier struct {
|
||||
type Verifier interface {
|
||||
Verify(name string) (bool, error)
|
||||
}
|
||||
|
||||
type verifier struct {
|
||||
finder PluginFinder
|
||||
}
|
||||
|
||||
func NewVerifier(finder PluginFinder) *Verifier {
|
||||
return &Verifier{
|
||||
func NewVerifier(finder PluginFinder) Verifier {
|
||||
return &verifier{
|
||||
finder: finder,
|
||||
}
|
||||
}
|
||||
|
||||
func (v *Verifier) Verify(name string) (bool, error) {
|
||||
func (v *verifier) Verify(name string) (bool, error) {
|
||||
enabled := IsEnabled(name)
|
||||
|
||||
switch name {
|
||||
|
||||
Reference in New Issue
Block a user