mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
delete should tolerate a failed wait because of missing verbs
This commit is contained in:
parent
23b4690d00
commit
2c514b5b1d
@ -282,7 +282,7 @@ func (o *DeleteOptions) DeleteResult(r *resource.Result) error {
|
|||||||
IOStreams: o.IOStreams,
|
IOStreams: o.IOStreams,
|
||||||
}
|
}
|
||||||
err = waitOptions.RunWait()
|
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 we're forbidden from waiting, we shouldn't fail.
|
||||||
glog.V(1).Info(err)
|
glog.V(1).Info(err)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user