mirror of https://github.com/k3s-io/k3s
delete should tolerate a failed wait because of missing verbs
parent
23b4690d00
commit
2c514b5b1d
|
@ -282,7 +282,7 @@ 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.
|
||||
glog.V(1).Info(err)
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue