k3s/cmd
Kubernetes Submit Queue c2667203e4 Merge pull request #45859 from DirectXMan12/refactor/protobuf-for-metrics
Automatic merge from submit-queue

Protobuf generation for k8s.io/metrics

This PR introduces protobuf generation for k8s.io/metrics.  Doing so required:

- fixing a bug in `go-to-protobuf` causing the `cast{key,value,type}` values to not be quoted when coming from struct tags (and not auto-injection by `go-to-protobuf` itself).
- Making sure the proto IDL in k8s.io/client-go had a package name of `k8s.io.client_go.xyz` and not `k8s.io.kubernetes.xyz`.

Additionally, I updated `go-to-protobuf` to skip functions and non-public types when composing the import list, which cuts down on the more bizarre imports in the IDL (like importing the sample API package in every IDL file because it contained `addToScheme`, like every other API package).

We use `castvalue` to force gogo-proto to realize that it should consider the value of the map which underlies `ResourceList` when calculating which imports need to be named.  Otherwise, it ignores the value's type, leading to compilation errors when it later can't find an import it assumed existed.  We accidentally didn't hit this in `k8s.io/kubernetes/pkg/api/v1` since another field coincidentally happens to directly use `resource.Quantity` (the value type of `ResourceList`).

**Release note**:
```release-note
NONE
```
2017-05-27 14:08:46 -07:00
..
clicheck More cli sanity verifications 2017-05-18 15:44:49 -03:00
cloud-controller-manager Initialize cloud providers with a K8s clientBuilder 2017-05-17 14:38:25 -07:00
gendocs autogenerated 2017-04-14 10:40:57 -07:00
genkubedocs autogenerated 2017-04-14 10:40:57 -07:00
genman autogenerated 2017-04-14 10:40:57 -07:00
genslateyaml autogenerated 2017-04-14 10:40:57 -07:00
genswaggertypedocs autogenerated 2017-04-14 10:40:57 -07:00
genutils
genyaml autogenerated 2017-04-14 10:40:57 -07:00
gke-certificates-controller refactor certificate controller 2017-05-23 15:25:58 -07:00
hyperkube Merge pull request #45635 from MrHohn/hyperkube-unit-test 2017-05-23 20:52:56 -07:00
kube-apiserver Merge pull request #44742 from cheftako/aggregate 2017-05-26 20:39:56 -07:00
kube-controller-manager Merge pull request #46058 from jcbsmpsn/configure-certificate-duration 2017-05-26 11:02:03 -07:00
kube-proxy Add /healthz back to kube-proxy metrics server 2017-05-26 11:53:43 -07:00
kubeadm Update kube-dns version to 1.14.2 2017-05-11 12:29:00 -07:00
kubectl Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
kubelet Deprecate kubelet non-masquerade-cidr 2017-05-26 17:01:58 -07:00
kubemark hollow-node.go:delete useless para. and import 2017-05-25 12:54:01 +08:00
libs/go2idl [go-to-protobuf] Quote tag cast{key,value,type} 2017-05-26 19:59:27 -04:00
linkcheck autogenerated 2017-04-14 10:40:57 -07:00
mungedocs autogenerated 2017-04-14 10:40:57 -07:00
BUILD Merge pull request #42070 from luxas/remove_kube_discovery 2017-03-04 12:58:23 -08:00
OWNERS