Merge pull request #34028 from juanvallejo/jvallejo/add-dry-run-flag-kubectl-apply
Automatic merge from submit-queue
add --dry-run flag to `kubectl apply, kubectl create`
Partially addresses https://github.com/kubernetes/kubernetes/issues/11488
**Release note**:
```release-note
release-note-none
```
Related StackOverflow:
http://stackoverflow.com/questions/38824409/validate-openshift-objects-defined-in-yaml-before-actually-applying-or-executing
This patch adds a `--dry-run` flag to the `apply` command in order to
allow validation of objects, without patching or creating them. If a
`--dry-run` flag is present and no validation errors are found, the
command will exit before "configuring" or creating any objects.
@ncdc @fabianofranz
Showing
Please
register
or
sign in
to comment