The following flags, which do not apply to kubectl run, have been removed: --cascade --filename --force --grace-period --kustomize --recursive --timeout --wait These flags were being added to the run command to support pod deletion after attach, but they are not used if set, so they effectively do nothing. This PR also displays an error message if the pod fails to be deleted (when the --rm flag is used). Previously any error during deletion would be suppressed and the pod would remain. This PR also adds some unit tests for run and attach with and without the --rm flag. As such, some minor refactoring of the run command has been done to support mocking dependencies. Kubernetes-commit: 25e713ba777ec1158fad749e9467601526ba096a |
||
|---|---|---|
| .. | ||
| run.go | ||
| run_test.go | ||