Files
kubernetes/pkg
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
..
2016-09-19 09:57:19 -04:00
2016-09-23 12:03:58 +02:00
2016-09-26 07:58:01 -04:00
2016-09-26 11:48:00 -07:00
2016-08-31 13:46:40 -07:00
2016-07-16 13:48:21 -04:00
2016-08-25 10:57:31 -07:00
2016-09-23 16:24:49 -04:00
2016-08-22 14:18:15 -04:00
2016-09-01 15:55:34 -07:00
2016-08-22 12:59:54 -07:00