kubernetes/pkg/client/restclient
Angus Salkeld c955de2ba8 Make sure the StatusCode is taken into account in DoRaw()
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:)
2016-08-23 11:42:42 +10:00
..
client_test.go Run goimports 2016-08-02 15:12:39 +03:00
client.go Remove Codec from ContentConfig. 2016-07-08 13:53:09 +02:00
config_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
config.go ScheduledJob controller 2016-08-05 13:34:50 -07:00
plugin_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
plugin.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
request_test.go Remove implicit Prometheus metrics from client 2016-08-19 10:11:45 -07:00
request.go Make sure the StatusCode is taken into account in DoRaw() 2016-08-23 11:42:42 +10:00
transport.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
url_utils_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
url_utils.go Fix problem specifying fqdn:port in command line 2016-07-05 10:10:12 -04:00
urlbackoff_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
urlbackoff.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
versions.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00