mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
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 |
||
|---|---|---|
| .. | ||
| authenticator | ||
| filters | ||
| metrics | ||
| openapi | ||
| request | ||
| testing | ||
| api_installer.go | ||
| api_installer_test.go | ||
| apiserver.go | ||
| apiserver_test.go | ||
| BUILD | ||
| doc.go | ||
| errors.go | ||
| errors_test.go | ||
| negotiate.go | ||
| negotiate_test.go | ||
| OWNERS | ||
| proxy.go | ||
| proxy_test.go | ||
| resthandler.go | ||
| resthandler_test.go | ||
| serviceerror.go | ||
| validator.go | ||
| validator_test.go | ||
| watch.go | ||
| watch_test.go | ||