k3s/pkg/client
Kubernetes Submit Queue c5e7e5124a Merge pull request #30969 from asalkeld/raw-status-code
Automatic merge from submit-queue

Make sure the StatusCode is taken into account in DoRaw()

**What this PR does / why we need it**:
Currently if there is an error (not found) the error printed out
is to do with the inablity to convert an empty body into the expected json.

This patch will fill in the err correctly.

example of before (with NotFound error):
$ kubectl top node
failed to unmarshall heapster response: json: cannot unmarshal object into Go value of type []v1alpha1.NodeMetrics

Now:
$ kubectl top node
the server could not find the requested resource (get services http:heapster:)

**Which issue this PR fixes** 
related to bug #30818

**Special notes for your reviewer**:
None

**Release note**:
```release-note
NONE
```
2016-08-25 01:01:05 -07:00
..
cache Avoid sorting List when unnecessary 2016-08-22 15:07:17 +02:00
chaosclient Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
clientset_generated Add ScaleExpansion to client v1.4 2016-08-22 09:58:28 -04:00
leaderelection Update acquire to use newer JitterUntil vs. sleep with 0 timer which may 2016-07-29 11:10:00 -05:00
metrics Remove implicit Prometheus metrics from client 2016-08-19 10:11:45 -07:00
record Merge pull request #29230 from luxas/goimport 2016-08-05 16:22:01 -07:00
restclient Make sure the StatusCode is taken into account in DoRaw() 2016-08-23 11:42:42 +10:00
testdata Added test cases for NewKubeletClient with TLS enabled 2014-12-18 00:57:33 -08:00
testing/core Check all places to break the loop when object found 2016-07-23 13:49:04 +08:00
transport Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
typed Rename IsEmpty to Empty 2016-08-19 14:19:19 -07:00
unversioned Merge pull request #29696 from brendandburns/kubecfg 2016-08-21 11:18:21 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00