mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-01 17:44:30 +00:00
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
7.9 KiB
7.9 KiB