Files
kubernetes/pkg
Kubernetes Submit Queue 062f6b50bf Merge pull request #63928 from deads2k/cli-61-apiversion-protection
Automatic merge from submit-queue (batch tested with PRs 63920, 63716, 63928, 60553, 63946). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

add protection for missing apiversion so we never serialize a bad object

we need the json and yaml printers to fail if they are going to serialize a thing that is missing apiversion and kind information.  This adds a simple check for it.

@kubernetes/sig-cli-maintainers 
/assign @juanvallejo 
/assign @soltysh 

```release-note
NONE
```
2018-05-18 01:07:18 -07:00
..
2018-05-15 21:38:54 +02:00
2018-05-12 02:01:09 -04:00
2018-05-08 18:33:50 -04:00
2018-02-16 13:43:01 -08:00
2018-02-12 10:54:33 -05:00
2018-03-13 17:20:16 +08:00