kubernetes/pkg/kubectl/scheme
Kubernetes Submit Queue ed4739b36b
Merge pull request #63330 from deads2k/api-13-sparse
Automatic merge from submit-queue. 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 test for sparse version encoding/decoding

This adds tests that make sure the sparse version encoding and encoding work as callers will expect, with the correct version being picked from the list.  I wrote two tests, one a theoretical test not dependent on any API and another practical test using cronjobs which are currently sparse in the registry.

@liggitt turns out that because we find exact matches, sparse versions ought to work out fine.
@smarterclayton I hate that the versioner matches on type.  I'll update that separately I think.


```release-note
NONE
```
2018-05-01 12:11:35 -07:00
..
BUILD add test for sparse version encoding/decoding 2018-05-01 09:34:06 -04:00
install.go remove incorrect static restmapper 2018-05-01 07:51:17 -04:00
scheme.go remove KUBE_API_VERSIONS 2018-04-26 08:27:49 -04:00
sparse_test.go add test for sparse version encoding/decoding 2018-05-01 09:34:06 -04:00