k3s/cmd/hyperkube
Kubernetes Submit Queue 637cc0a8ba Merge pull request #46276 from karataliu/removeDupMsg
Automatic merge from submit-queue (batch tested with PRs 47961, 46276)

Remove duplicate error message output in hyperkube.

**What this PR does / why we need it**:
Currently hyperkube binary will always print duplicate messages if fatal error occurs:
```
$ ./kubelet # run without permission
I0523 08:38:02.642638   25701 feature_gate.go:144] feature gates: map[]
W0523 08:38:02.642827   25701 server.go:472] No API client: no api servers specified
Error: failed to run Kubelet: error reading /var/run/kubernetes/kubelet.key, certificate and key must be supplied as a pair
Error: failed to run Kubelet: error reading /var/run/kubernetes/kubelet.key, certificate and key must be supplied as a pair
```

This is due to RunToExit will print out the error which Run has just printed. https://github.com/kubernetes/kubernetes/blob/8bee44b/cmd/hyperkube/hyperkube.go#L178-L189

This was introduced in following commit for adding GOMAXPROCS calls.
1e679f0069

The following commit removes GOMAXPROCS calls, but did not remove the corresponding error output line.
88ea80b572


**Which issue this PR fixes**

**Special notes for your reviewer**:

**Release note**:
2017-06-26 02:11:54 -07:00
..
BUILD Convert go_binary linkstamp to x_defs 2017-06-08 14:59:55 -07:00
federation-apiserver.go fed: Create integration test fixture for api 2017-03-08 06:58:58 -08:00
federation-controller-manager.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
hyperkube.go Remove duplicate error message output in hyperkube. 2017-05-23 17:02:59 +08:00
hyperkube_test.go hyperkube_test should not depends on number of spaces. 2017-05-10 22:18:51 -07:00
kube-aggregator.go add aggregation integration test 2017-02-28 08:42:06 -05:00
kube-apiserver.go wire in aggregation 2017-03-27 09:44:10 -04:00
kube-controller-manager.go Add alternative names for the server binaries to hyperkube 2017-02-06 17:05:42 +02:00
kube-proxy.go Add kube-proxy config file support 2017-05-01 18:02:47 -04:00
kube-scheduler.go Add alternative names for the server binaries to hyperkube 2017-02-06 17:05:42 +02:00
kubectl.go Add initial translation support. 2016-12-23 20:45:52 -08:00
kubelet.go Add alternative names for the server binaries to hyperkube 2017-02-06 17:05:42 +02:00
main.go add kube-aggregator to hyperkube 2017-02-17 08:13:11 -05:00
server.go Add alternative names for the server binaries to hyperkube 2017-02-06 17:05:42 +02:00