remove Warning from restore item action output (#1318)

Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
Steve Kriss
2019-03-28 13:08:37 -07:00
committed by KubeKween
parent be42ea782d
commit a696cd09f2
10 changed files with 28 additions and 63 deletions
+2 -10
View File
@@ -1,5 +1,5 @@
/*
Copyright 2017 the Velero 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.
@@ -53,9 +53,7 @@ type RestoreItemActionExecuteInput struct {
type RestoreItemActionExecuteOutput struct {
// UpdatedItem is the item being restored mutated by ItemAction.
UpdatedItem runtime.Unstructured
// Warning is an exceptional message returned from ItemAction
// which is not preventing the item from being restored.
Warning error
// AdditionalItems is a list of additional related items that should
// be restored.
AdditionalItems []ResourceIdentifier
@@ -67,9 +65,3 @@ func NewRestoreItemActionExecuteOutput(item runtime.Unstructured) *RestoreItemAc
UpdatedItem: item,
}
}
// WithWarning returns a warning for RestoreItemActionExecuteOutput
func (r *RestoreItemActionExecuteOutput) WithWarning(err error) *RestoreItemActionExecuteOutput {
r.Warning = err
return r
}