UPSTREAM: 65370: delete should tolerate a failed wait because of missing verbs
@@ -285,8 +285,9 @@ func (o *DeleteOptions) DeleteResult(r *resource.Result) error {
IOStreams: o.IOStreams,
}
err = waitOptions.RunWait()
- if errors.IsForbidden(err) {
+ if errors.IsForbidden(err) || errors.IsMethodNotSupported(err) {
// if we're forbidden from waiting, we shouldn't fail.
+ // if the resource doesn't support a verb we need, we shouldn't fail.
glog.V(1).Info(err)
return nil
}
