k3s/cmd
Kubernetes Submit Queue c73b96d66d Merge pull request #25526 from lavalamp/fix-generated-code
Automatic merge from submit-queue

Fix code generators-- make scheme building composable

I needed to make some changes to make my other refactoring possible and this got rather large. 

We now provide a "SchemeBuilder" to help all of the api packages provide their scheme-building functions (addKnownTypes and friends) in a standardized way. This also allows generated deepcopies & conversions to be entirely self contained, the project will now build without them being present (as they can add themselves to the SchemeBuilder). (Although if you actually build without them, you will get reduced performance!)

Previously, there was no way to construct your own runtime.Scheme (e.g., to test), you had to use the api.Scheme object, which has all sorts of non-hermetic cruft in it. Now you can get everything from a package by calling the scheme builder's AddToScheme, including the generated functions, if they are present.

Next steps are to allow for declaring dependencies, and to standardize the registration & install code. (#25434)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/25526)
<!-- Reviewable:end -->
2016-08-11 22:38:29 -07:00
..
gendocs Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
genkubedocs Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
genman Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
genswaggertypedocs Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
genutils Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
genyaml Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
hyperkube Merge pull request #27855 from andreykurilin/cobra_update 2016-08-11 19:05:13 -07:00
kube-apiserver Merge pull request #29147 from caesarxuchao/cut-client-repo-staging 2016-08-09 17:12:14 -07:00
kube-controller-manager Merge pull request #29147 from caesarxuchao/cut-client-repo-staging 2016-08-09 17:12:14 -07:00
kube-dns move pkg/util/ files to their own package to reduce client-go dependencies 2016-08-05 23:32:02 -07:00
kube-proxy Merge pull request #30293 from girishkalele/kube-proxy-hostname 2016-08-10 02:00:37 -07:00
kubectl Setup logging in kubectl via pkg/util/logs 2016-08-11 12:19:19 +02:00
kubelet Merge pull request #30176 from dims/check-for-root-access 2016-08-11 08:46:19 -07:00
kubemark Remove GOMAXPROCS() calls because they are unnecessary 2016-07-19 11:08:21 +03:00
kubernetes-discovery Merge pull request #29042 from dims/fixup-imports 2016-07-18 07:23:38 -07:00
libs/go2idl changes to generators 2016-08-11 17:06:54 -07:00
linkcheck Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
mungedocs Fix broken warning image link in docs 2016-07-15 10:44:58 +01:00
OWNERS Remove myself from a bunch of OWNERS files, as I am too overloaded 2016-05-11 13:34:51 -07:00