Files
kubernetes/pkg
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 :wink::
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-09-19 09:57:19 -04:00
2016-09-22 23:37:27 +08:00
2016-08-31 13:46:40 -07:00
2016-08-25 10:57:31 -07:00
2016-09-29 17:35:43 -07:00
2016-08-22 14:18:15 -04:00
2016-09-27 12:44:54 -04:00
2016-09-20 14:47:31 +08:00
2016-10-03 22:39:33 +02:00
2016-10-07 15:37:57 +02:00