kubernetes/api/swagger-spec
Kubernetes Submit Queue d56f6ef816 Merge pull request #49971 from deads2k/discovery-01-group
Automatic merge from submit-queue (batch tested with PRs 49971, 51357, 51616, 51649, 51372)

add information for subresource kind determination

xref https://github.com/kubernetes/kubernetes/issues/38810 https://github.com/kubernetes/kubernetes/issues/38756

Polymorphic subresources usually have different groupVersions for their discovery kinds than their "native" groupVersions.  Even though the APIResourceList shows the kind properly, it does not reflect the group or version of that kind, which makes it impossible to unambiguously determine if the subresource matches you and it is impossible to determine how to serialize your data.  See HPA controller.

This adds an optional Group and Version to the discovery doc, which can be used to communicate the "native" groupversion of an endpoint.  Doing this does not preclude fancier contenttype negotiation in the future and doesn't prevent future expansion from indicating equivalent types, but it does make it possible to solve the problem we have today or polymorphic categorization.

@kubernetes/sig-api-machinery-misc @smarterclayton 
@cheftako since @lavalamp is out.

```release-note
Adds optional group and version information to the discovery interface, so that if an endpoint uses non-default values, the proper value of "kind" can be determined. Scale is a common example.
```
2017-09-01 01:12:36 -07:00
..
admissionregistration.k8s.io_v1alpha1.json generated 2017-08-31 08:05:00 -04:00
admissionregistration.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
api.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
apis.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
apps_v1alpha1.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
apps_v1beta1.json generated 2017-08-31 08:05:00 -04:00
apps_v1beta2.json generated 2017-08-31 08:05:00 -04:00
apps.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
authentication.k8s.io_v1.json generated 2017-08-31 08:05:00 -04:00
authentication.k8s.io_v1beta1.json generated 2017-08-31 08:05:00 -04:00
authentication.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
authorization.k8s.io_v1.json generated 2017-08-31 08:05:00 -04:00
authorization.k8s.io_v1beta1.json generated 2017-08-31 08:05:00 -04:00
authorization.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
autoscaling_v1.json generated 2017-08-31 08:05:00 -04:00
autoscaling_v2alpha1.json generated 2017-08-31 08:05:00 -04:00
autoscaling.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
batch_v1.json generated 2017-08-31 08:05:00 -04:00
batch_v1beta1.json generated 2017-08-31 08:05:00 -04:00
batch_v2alpha1.json generated 2017-08-31 08:05:00 -04:00
batch.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
BUILD Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
certificates.k8s.io_v1beta1.json generated 2017-08-31 08:05:00 -04:00
certificates.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
extensions_v1beta1.json Merge pull request #49971 from deads2k/discovery-01-group 2017-09-01 01:12:36 -07:00
extensions.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
logs.json Update generated proto and swagger docs 2016-09-12 18:47:03 -07:00
networking.k8s.io_v1.json generated 2017-08-31 08:05:00 -04:00
networking.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
policy_v1alpha1.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
policy_v1beta1.json generated 2017-08-31 08:05:00 -04:00
policy.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
rbac.authorization.k8s.io_v1.json generated 2017-08-31 08:05:00 -04:00
rbac.authorization.k8s.io_v1alpha1.json generated 2017-08-31 08:05:00 -04:00
rbac.authorization.k8s.io_v1beta1.json generated 2017-08-31 08:05:00 -04:00
rbac.authorization.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
resourceListing.json Generated changes for CronJobs in batch/v1beta1 2017-08-16 08:42:21 +02:00
scheduling.k8s.io_v1alpha1.json generated 2017-08-31 08:05:00 -04:00
scheduling.k8s.io.json autogenerated files 2017-07-18 17:47:57 -07:00
settings.k8s.io_v1alpha1.json generated 2017-08-31 08:05:00 -04:00
settings.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
storage.authorization.k8s.io_v1beta1.json generated code for moving StorageClass 2016-09-06 08:41:17 -04:00
storage.k8s.io_v1.json generated 2017-08-31 08:05:00 -04:00
storage.k8s.io_v1beta1.json generated 2017-08-31 08:05:00 -04:00
storage.k8s.io.json Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
v1.json generated 2017-08-31 08:05:00 -04:00
version.json update autogenerated 2016-08-18 14:14:52 -07:00