Merge pull request #41433 from juanvallejo/jvallejo/add-ignore-not-found-flag
Automatic merge from submit-queue (batch tested with PRs 39855, 41433, 41567, 41887, 41652)
add --ignore-not-found option
Related downstream issue https://github.com/openshift/origin/issues/12867#event-961812896
Adds `--ignore-not-found` option that works similarly to the one found in [delete](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/delete.go#L154).
Allows for scripts to request specific resources that might not exist, without dealing with ambiguous exit code `1`.
**Release note**:
```release-note
NONE
```
cc @smarterclayton @jupierce @fabianofranz
Showing
Please
register
or
sign in
to comment