Files
kubernetes/pkg/kubectl
Kubernetes Submit Queue 3951ae4e1d Merge pull request #38112 from juanvallejo/jvallejo/add-output-format-support-kubectl-create
Automatic merge from submit-queue

Add json,yaml output format support to kubectl create, kubectl apply

Fixes: https://github.com/kubernetes/kubernetes/issues/37390

**Release note**:
```release-note
Added support for printing in all supported `--output` formats to `kubectl create ...` and `kubectl apply ...`
```

This patch adds the ability to specify an output format other than
"name" to `kubectl create ...`. It can be used in conjunction with the
`--dry-run` option. Converts unstructured objects into known types in
order to support all `--output` values.

The patch prints `*resource.Info`s returned by the server. If a resource does not yet exist (and the `--dry-run` option is not set), the resource is created and printed in the specified format.

@kubernetes/cli-review @fabianofranz
2017-01-03 14:18:33 -08:00
..
2016-12-12 13:30:07 -08:00
2016-12-29 13:04:10 -08:00
2016-12-12 13:30:07 -08:00
2016-12-01 16:09:05 +08:00
2016-12-29 13:04:10 -08:00
2016-12-14 12:39:49 -08:00
2016-12-17 00:07:24 +01:00
2016-07-16 13:48:21 -04:00
2016-12-09 09:42:01 +01:00
2016-12-03 19:10:46 -05:00
2016-11-30 17:40:57 +08:00
2016-12-21 09:03:27 -05:00
2016-11-23 22:30:47 -06:00
2016-12-09 09:42:01 +01:00
2016-12-20 10:00:00 +01:00
2016-12-17 00:07:24 +01:00
2016-12-09 09:42:01 +01:00
2016-12-17 00:07:24 +01:00
2016-11-23 15:53:09 -08:00
2016-12-10 18:07:33 -05:00
2016-12-09 09:42:01 +01:00
2016-12-14 12:39:49 -08:00