kubernetes/pkg/kubectl/cmd/util
Kubernetes Submit Queue ea688f5e44 Merge pull request #31276 from juanvallejo/jvallejo_update-dry-run-create
Automatic merge from submit-queue

Update kubectl create message when using --dry-run

`kubectl create <resource> <name> --dry-run` provides a misleading success
message.

When commands such as `kubectl new-app node` are run with a
`--dry-run` flag, they make this clear by appending a "(DRY RUN)"
string to the final output. `kubectl create <resource>  <name> --dry-run`
does not do this, providing a potentially misleading output.

This patch appends a "(DRY RUN)" string to the end of a successful
message of `kubectl create` subcommands that support the `--dry-run` flag.

`kubectl create quota quota --dry-run`
```
resourcequota "quota" created
```

`kubectl create quota quota --dry-run`
```
resourcequota "quota" created (DRY RUN)
```

**Release note**:
```release-note
release-note-none
```
2016-09-26 16:01:17 -07:00
..
editor Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
jsonmerge change all jsonmerge to strategicpatch 2016-09-09 08:28:10 +08:00
clientcache.go convert rest of kubectl to generated clients 2016-09-12 08:22:34 -04:00
factory_test.go Extend all to more resources 2016-09-19 13:01:59 -04:00
factory.go Merge pull request #31163 from juanvallejo/jvallejo_filter-resources-before-printing 2016-09-23 10:45:57 -07:00
helpers_test.go Add return code support to kubectl-exec and -run 2016-08-20 15:58:47 +02:00
helpers.go add resource handling before printing 2016-09-21 10:03:59 -04:00
printing.go update PrintSuccess message when using --dry-run 2016-09-15 10:11:21 -04:00
shortcut_restmapper_test.go Extend all to more resources 2016-09-19 13:01:59 -04:00
shortcut_restmapper.go Extend all to more resources 2016-09-19 13:01:59 -04:00