mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-15 14:48:16 +00:00
Implement dynamic admission webhooks
Also fix a bug in rest client Kubernetes-commit: d6e1140b5d3c5c9d8696b7ccda0a5f92f36033df
This commit is contained in:
committed by
Kubernetes Publisher
parent
d9ea62815a
commit
38cb1a951d
@@ -1148,6 +1148,9 @@ func (r Result) Into(obj runtime.Object) error {
|
||||
if r.decoder == nil {
|
||||
return fmt.Errorf("serializer for %s doesn't exist", r.contentType)
|
||||
}
|
||||
if len(r.body) == 0 {
|
||||
return fmt.Errorf("0-length response")
|
||||
}
|
||||
|
||||
out, _, err := r.decoder.Decode(r.body, nil, obj)
|
||||
if err != nil || out == obj {
|
||||
|
Reference in New Issue
Block a user