k3s/pkg
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
..
api Regenerate protobuf and client-go 2017-05-27 00:37:49 -04:00
apimachinery/tests
apis Regenerate protobuf and client-go 2017-05-27 00:37:49 -04:00
auth
bootstrap/api
capabilities
client generated 2017-05-26 00:14:11 -07:00
cloudprovider Merge pull request #45524 from MrHohn/l4-lb-healthcheck 2017-05-26 19:47:57 -07:00
controller Merge pull request #45923 from verult/cxing/NodeStatusUpdaterFix 2017-05-26 12:58:02 -07:00
conversion
credentialprovider
features Merge pull request #45436 from verb/nit-kubelet-featuregate-template 2017-05-26 15:59:01 -07:00
fieldpath
fields
generated generated 2017-05-26 00:14:11 -07:00
hyperkube
kubeapiserver generated 2017-05-26 16:06:12 -07:00
kubectl Merge pull request #46277 from zjj2wry/credentials 2017-05-26 19:48:01 -07:00
kubelet Merge pull request #46554 from thockin/kubelet-masq-flag 2017-05-26 20:39:58 -07:00
kubemark
labels
master Merge pull request #46440 from deads2k/crd-03-invert 2017-05-26 15:59:03 -07:00
metrics
printers Merge pull request #46178 from zjj2wry/des_rq 2017-05-26 07:05:54 -07:00
probe
proxy Merge pull request #46450 from MrHohn/fix-proxy-healthcheck-nilpointer 2017-05-26 18:48:56 -07:00
quota Moved qos to api.helpers. 2017-05-20 07:17:57 -04:00
registry generated 2017-05-26 00:14:11 -07:00
routes
runtime
security
securitycontext
serviceaccount
ssh
types
util Make BoundedFrequencyRunner Run() really non-blocking 2017-05-25 16:12:16 +02:00
version
volume Merge pull request #46367 from bobveznat/master 2017-05-26 18:49:04 -07:00
watch
BUILD generated 2017-05-26 00:14:11 -07:00
OWNERS