mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-29 21:29:24 +00:00
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 actually creating them. If a `--dry-run` flag is present and no validation errors are found, the command will exit before patching or creating any objects. It also adds a `--dry-run` option to the `kubectl create` root command.