Merge pull request #125944 from timofurrer/fix/error-msg-type

Fix typo in type name of watch decode error
This commit is contained in:
Kubernetes Prow Robot 2024-07-10 09:02:50 -07:00 committed by GitHub
commit 6a45c8b7d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):