k3s/cmd
Kubernetes Submit Queue 6b52d8f138 Merge pull request #47701 from smarterclayton/stable_serialization
Automatic merge from submit-queue (batch tested with PRs 47669, 40284, 47356, 47458, 47701)

Serialized protobuf should have stable map order

Leverage `stable_marshaller_all` tag in gogo-protobuf to ensure all of our maps have stable ordering when serialized to protobuf. This preserves the behavior from JSON that we rely on to avoid writing to etcd except when the content has changed.

Will slightly increase allocations (1 slice per non-empty map in an object) during Encode, which has a minor impact on CPU. However, avoiding writes when a client issues a blind put results in significantly less CPU across the whole cluster (avoiding a new etcd version for an Endpoints object might save ~1 core/sec on large clusters).

Fixes #47678 

```release-note
The protobuf serialization of API objects has been updated to store maps in a predictable order to ensure that the representation of that object does not change when saved into etcd. This prevents the same object from being seen as being modified, even when no values have changed.
```
2017-06-19 15:25:06 -07:00
..
clicheck More cli sanity verifications 2017-05-18 15:44:49 -03:00
cloud-controller-manager Convert go_binary linkstamp to x_defs 2017-06-08 14:59:55 -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 Add fatal message 2017-06-04 09:42:08 +08:00
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 Convert go_binary linkstamp to x_defs 2017-06-08 14:59:55 -07:00
kube-apiserver add admissionregistration to the list 2017-06-16 17:20:24 -07:00
kube-controller-manager update-bazel 2017-06-15 11:38:11 -07:00
kube-proxy Merge pull request #46678 from tacy/fix46039 2017-06-12 20:11:22 -07:00
kubeadm Merge pull request #47356 from dashpole/master_critical_pods 2017-06-19 15:25:01 -07:00
kubectl Convert go_binary linkstamp to x_defs 2017-06-08 14:59:55 -07:00
kubelet Merge pull request #47166 from k82cn/type_fix 2017-06-19 11:23:58 -07:00
kubemark hollow-node.go:delete useless para. and import 2017-05-25 12:54:01 +08:00
libs/go2idl Generate protobuf with stable ordered maps 2017-06-17 14:32:50 -04:00
linkcheck autogenerated 2017-04-14 10:40:57 -07:00
mungedocs Fix link tests in mungedocs 2017-06-05 22:37:20 -07:00
BUILD Merge pull request #42070 from luxas/remove_kube_discovery 2017-03-04 12:58:23 -08:00
OWNERS