ericchiang / k8s

A simple Kubernetes Go client
Apache License 2.0
599 stars 108 forks source link

*: fix deserialization of JSON errors #83

Closed ericchiang closed 6 years ago

ericchiang commented 6 years ago

Have meta/v1.Status implement json decoding to support JSON encoded errors from the API. This package's decoding logic won't unmarshal a JSON payload into a protobuf message to prevent silent errors. Protobuf types can allow JSON by implementing json.Unmarshaler.

Fixes https://github.com/ericchiang/k8s/issues/82