mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
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