From 55c0e2c777943613e2776629a089c88e4396cbc1 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 Kubernetes-commit: fed49d06aac3f003f7b2df35ffed6b2f16ef2548 --- rest/watch/decoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/watch/decoder.go b/rest/watch/decoder.go index e95c020b2..9e1e04d14 100644 --- a/rest/watch/decoder.go +++ b/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):