k3s/cmd
Kubernetes Submit Queue c07c73efbb Merge pull request #34385 from m1093782566/m109-kube-proxy-sys
Automatic merge from submit-queue

Generify kube-proxy conntracker setmax() and refactor util/sysctl

<!--  Thanks for sending a pull request!  Here are some tips for you:
1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
-->

**What this PR does / why we need it**:

Fix Kube-proxy `conntrack.go` **TODO** [here](https://github.com/kubernetes/kubernetes/blob/master/cmd/kube-proxy/app/conntrack.go#L56). This PR consists of two parts:

* Generify kube-proxy `realConntracker.SetMax(int)` 

That is, change

`ioutil.WriteFile("/sys/module/nf_conntrack/parameters/hashsize", []byte(strconv.Itoa(max/4)), 0640)` 

to

`sysctl.New().WriteValue("/sys/module/nf_conntrack/parameters/hashsize", max/4)`

* Refactor `sysctl.SetSysctl()` and `sysctl.GetSysctl()` to `WriteValue(path string, value string) error` and `GetValue(path value) (error, string)`
2016-10-21 00:18:53 -07:00
..
clicheck Tools for checking CLI conventions 2016-10-17 11:50:02 -02: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 Add support for generating all the manpages to genman 2016-09-22 20:09:22 +05:30
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 Remove old references to contrib/mesos 2016-10-01 16:46:48 +03:00
kube-apiserver move proxytransport config out of the genericapiserver 2016-10-20 11:23:53 -04:00
kube-controller-manager convert replica set controller to shared informer 2016-10-18 08:13:37 -04:00
kube-discovery Expand on kube-discovery API and integrate container build. 2016-09-16 11:37:04 -03:00
kube-dns kube-dns: Add --dns-bind-address flag 2016-09-23 09:57:57 -07:00
kube-proxy Merge pull request #34385 from m1093782566/m109-kube-proxy-sys 2016-10-21 00:18:53 -07:00
kubeadm Merge pull request #35111 from apprenda/kubeadm_normalize_reset 2016-10-20 20:02:58 -07:00
kubectl Split the version metric out to its own package 2016-08-24 11:47:16 -07:00
kubelet Add mounterPath to mounter interface 2016-10-20 14:15:27 -07:00
kubemark remove almost all usages of clientadapter 2016-09-26 07:53:03 -04:00
kubernetes-discovery etcd3 validation showed that several unit tests that depend on apiserver being fully 2016-08-18 14:12:24 -05:00
libs/go2idl Make defaulting optional during conversion generation 2016-10-18 21:07:34 -04:00
linkcheck Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
mungedocs Update the latestReleaseBranch to release-1.4 in the munger. 2016-09-01 14:40:55 -07:00
OWNERS