k3s/pkg/apiserver
Kubernetes Submit Queue 5774ca188d Merge pull request #35840 from caesarxuchao/hide-new-versions
Automatic merge from submit-queue

Hide groups with new versions from old kubectl

Fix https://github.com/kubernetes/kubernetes/issues/35791

**What caused the bug?**

In 1.5, we are going to graduate Policy and Apps to beta. Old version kubectl doesn't has the new versions built-in, its TRP dynamic discover thinks Policy/v1beta1 is a TPR, and tried to register it in kubectl's scheme. The registration failed because Policy group already exist, because kubectl had registered Policy.v1alpha1.

**How does this PR fix the bug?**

This PR let the API server hides Policy and Apps from old version kubectl, so TPR discovery won't see them.

Old version kubectl doesn't know about Policy/v1beta1 or Apps/v1beta1, and v1alpha1 will be removed, so old version kubectl won't work for Policy or Apps anyway, so this PR does not cause any function loss.

@kubernetes/sig-api-machinery @liggitt @smarterclayton @deads2k @janetkuo @mwielgus
2016-11-02 04:49:56 -07:00
..
authenticator wire up authenticating front proxy: 2016-10-28 08:36:46 -04:00
filters autogenerated 2016-10-21 17:32:32 -07:00
metrics autogenerated 2016-10-21 17:32:32 -07:00
openapi - Add GroupVersion as tags to OpenAPI spec 2016-10-25 14:27:48 -07:00
request autogenerated 2016-10-21 17:32:32 -07:00
testing autogenerated 2016-10-21 17:32:32 -07:00
BUILD Merge pull request #35840 from caesarxuchao/hide-new-versions 2016-11-02 04:49:56 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
api_installer.go Correct the article in generated documents 2016-10-31 09:46:29 +10:00
api_installer_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
apiserver.go Merge pull request #35840 from caesarxuchao/hide-new-versions 2016-11-02 04:49:56 -07:00
apiserver_test.go Replace negotiation with a new method that can extract info 2016-10-28 11:30:11 -04:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
errors.go Store RequestInfo in Context 2016-09-28 18:51:34 +02:00
errors_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
negotiate.go Replace negotiation with a new method that can extract info 2016-10-28 11:30:11 -04:00
negotiate_test.go Replace negotiation with a new method that can extract info 2016-10-28 11:30:11 -04:00
proxy.go Decouple NewRequestInfoResolver from GenericApiServer instance 2016-09-28 18:51:34 +02:00
proxy_test.go Store RequestInfo in Context 2016-09-28 18:51:34 +02:00
resthandler.go Replace negotiation with a new method that can extract info 2016-10-28 11:30:11 -04:00
resthandler_test.go Fix update validation for pods w/init containers. 2016-07-20 00:30:12 +03:00
serviceerror.go Separate apiserver handler filters 2016-09-27 09:57:59 +02:00
validator.go Add +optional tag to all fields with omitempty json tag 2016-10-17 08:52:13 -07:00
validator_test.go Run goimports 2016-08-02 15:12:39 +03:00
watch.go Replace negotiation with a new method that can extract info 2016-10-28 11:30:11 -04:00
watch_test.go Replace negotiation with a new method that can extract info 2016-10-28 11:30:11 -04:00