From fed49d06aac3f003f7b2df35ffed6b2f16ef2548 Mon Sep 17 00:00:00 2001 From: Timo Furrer Date: Mon, 8 Jul 2024 07:52:38 +0200 Subject: [PATCH] Fix typo in type name of watch decode error --- staging/src/k8s.io/client-go/rest/watch/decoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/client-go/rest/watch/decoder.go b/staging/src/k8s.io/client-go/rest/watch/decoder.go index e95c020b2e9..9e1e04d14eb 100644 --- a/staging/src/k8s.io/client-go/rest/watch/decoder.go +++ b/staging/src/k8s.io/client-go/rest/watch/decoder.go @@ -51,7 +51,7 @@ func (d *Decoder) Decode() (watch.EventType, runtime.Object, error) { return "", nil, err } if res != &got { - return "", nil, fmt.Errorf("unable to decode to metav1.Event") + return "", nil, fmt.Errorf("unable to decode to metav1.WatchEvent") } switch got.Type { case string(watch.Added), string(watch.Modified), string(watch.Deleted), string(watch.Error), string(watch.Bookmark):