Merge pull request #65560 from smarterclayton/print_better_type_info

Automatic merge from submit-queue (batch tested with PRs 65453, 65523, 65513, 65560). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Print type information when unknown watch error

Got

```
E0628 00:23:07.106285       1 watch.go:274] unable to encode watch object: expected pointer, but got invalid kind
```

on a production system and had no way to debug what type was being sent.

@liggitt re: the message I sent you

Kubernetes-commit: c4ca6638c397e90a486d363a10b3e6411fa6a0e4
This commit is contained in:
Kubernetes Publisher 2018-06-27 22:30:15 -07:00
commit 54b9cfe567
2 changed files with 159 additions and 99 deletions

252
Godeps/Godeps.json generated
View File

@ -1,6 +1,6 @@
{
"ImportPath": "k8s.io/apiserver",
"GoVersion": "go1.9",
"GoVersion": "go1.10",
"GodepVersion": "v80",
"Packages": [
"./..."
@ -832,335 +832,335 @@
},
{
"ImportPath": "k8s.io/api/admission/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/admissionregistration/v1alpha1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/admissionregistration/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/apps/v1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/apps/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/apps/v1beta2",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/authentication/v1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/authentication/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/authorization/v1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/authorization/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/autoscaling/v1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/autoscaling/v2beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/batch/v1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/batch/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/batch/v2alpha1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/certificates/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/coordination/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/core/v1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/events/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/extensions/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/networking/v1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/policy/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/rbac/v1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/rbac/v1alpha1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/rbac/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/scheduling/v1alpha1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/scheduling/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/settings/v1alpha1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/storage/v1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/storage/v1alpha1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/api/storage/v1beta1",
"Rev": "9e5ffd1f1320950b238cfce291b926411f0af722"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/testing",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/validation",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/api/validation/path",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/validation",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/rand",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/uuid",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/waitgroup",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "ed135c5b96450fd24e5e981c708114fbbd950697"
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/discovery",
@ -1170,10 +1170,6 @@
"ImportPath": "k8s.io/client-go/discovery/fake",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/informers",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/informers/admissionregistration",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
@ -1346,10 +1342,6 @@
"ImportPath": "k8s.io/client-go/kubernetes",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/fake",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/scheme",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
@ -1738,10 +1730,6 @@
"ImportPath": "k8s.io/client-go/tools/cache",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd/api",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
@ -1817,6 +1805,78 @@
{
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto",
"Rev": "91cfa479c814065e420cee7ed227db0f63a5854e"
},
{
"ImportPath": "k8s.io/client-go/discovery",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/informers",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/fake",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/scheme",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authentication/v1beta1",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/authorization/v1beta1",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/kubernetes/typed/core/v1",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/listers/admissionregistration/v1beta1",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/listers/core/v1",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/rest",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/testing",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/tools/cache",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd/api",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/tools/clientcmd/api/v1",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/util/cert",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
},
{
"ImportPath": "k8s.io/client-go/util/flowcontrol",
"Rev": "03bfb9bdcfe5482795b999f39ca3ed9ad42ce5bb"
}
]
}

View File

@ -209,7 +209,7 @@ func (s *WatchServer) ServeHTTP(w http.ResponseWriter, req *http.Request) {
s.Fixup(obj)
if err := s.EmbeddedEncoder.Encode(obj, buf); err != nil {
// unexpected error
utilruntime.HandleError(fmt.Errorf("unable to encode watch object: %v", err))
utilruntime.HandleError(fmt.Errorf("unable to encode watch object %T: %v", obj, err))
return
}
@ -230,7 +230,7 @@ func (s *WatchServer) ServeHTTP(w http.ResponseWriter, req *http.Request) {
return
}
if err := e.Encode(outEvent); err != nil {
utilruntime.HandleError(fmt.Errorf("unable to encode watch object: %v (%#v)", err, e))
utilruntime.HandleError(fmt.Errorf("unable to encode watch object %T: %v (%#v)", outEvent, err, e))
// client disconnect.
return
}
@ -276,7 +276,7 @@ func (s *WatchServer) HandleWS(ws *websocket.Conn) {
s.Fixup(obj)
if err := s.EmbeddedEncoder.Encode(obj, buf); err != nil {
// unexpected error
utilruntime.HandleError(fmt.Errorf("unable to encode watch object: %v", err))
utilruntime.HandleError(fmt.Errorf("unable to encode watch object %T: %v", obj, err))
return
}