Files
kubernetes/pkg/kubectl/resource
Kubernetes Submit Queue 65f6875ec4 Merge pull request #34763 from juanvallejo/jvallejo/add-warning-on-export-invalid-output-version
Automatic merge from submit-queue

log info on invalid --output-version

**Release note**:

``` release-note
release-note-none
```

Object versions default to the current version (v1) when a specified
`--output-version` is invalid. This patch logs a warning when this is
the case. Cases affected are all commands with the `--output-version`
option, and anywhere runtime objects are converted to versioned objects.

**Example**

```
$ kubectl get pod <mypod> -o json --output-version=invalid
W1013 17:24:16.810278   26719 result.go:238]  info: the output version
specified (invalid) is invalid, defaulting to v1
{
        "kind": "Pod",
            "apiVersion": "v1",
                "metadata": {
                            "name": "mypod",
                                    "namespace": "test",
...
```
2017-01-17 09:01:31 -08:00
..
2017-01-13 08:27:14 -05:00
2016-07-16 13:48:21 -04:00
2017-01-13 08:27:14 -05:00
2017-01-17 08:32:05 -05:00
2017-01-17 08:32:05 -05:00
2017-01-11 09:09:48 -05:00
2017-01-16 09:35:12 -05:00
2017-01-16 09:35:12 -05:00