Files
kubernetes/pkg/api
Kubernetes Submit Queue 049ad98581 Merge pull request #34010 from soltysh/fix_edit_sj
Automatic merge from submit-queue

Match GroupVersionKind against specific version

Currently when multiple GVK match a specific kind in `KindForGroupVersionKinds` only the first will be matched, which not necessarily will be the correct one. I'm proposing to extend this to pick the best match, instead.

Here's my problematic use-case, of course it involves ScheduledJobs 😉:
I have a `GroupVersions` with `batch/v1` and `batch/v2alpha1` in that order. I'm calling `KindForGroupVersionKinds` with kind `batch/v2alpha1 ScheduledJob` and that currently results this matching first `GroupVersion`, instead of picking more concrete one. There's a [clear description](ee77d4e6ca/pkg/api/unversioned/group_version.go (L183)) why it is on single `GroupVersion`, but `GroupVersions` should pick this more carefully.

@deads2k this is your baby, wdyt?
2016-10-10 06:16:29 -07:00
..
2016-07-16 13:48:21 -04:00
2016-09-28 10:53:30 -07:00
2016-09-19 09:57:19 -04:00
2016-08-29 11:31:16 +02:00
2016-09-09 09:55:51 -04:00
2016-07-16 13:48:21 -04:00
2016-09-30 17:56:37 +02:00
2016-09-19 09:57:19 -04:00
2016-08-22 21:09:57 -07:00
2016-09-28 10:53:30 -07:00
2016-03-02 20:46:32 -05:00
2016-07-12 21:52:00 -07:00
2016-08-29 11:31:16 +02:00
2016-09-23 12:03:58 +02:00
2016-09-28 10:53:30 -07:00