mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +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,
|
||||
}
|
||||
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
Block a user