mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #125944 from timofurrer/fix/error-msg-type
Fix typo in type name of watch decode error
This commit is contained in:
commit
6a45c8b7d1
@ -51,7 +51,7 @@ func (d *Decoder) Decode() (watch.EventType, runtime.Object, error) {
|
|||||||
return "", nil, err
|
return "", nil, err
|
||||||
}
|
}
|
||||||
if res != &got {
|
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 {
|
switch got.Type {
|
||||||
case string(watch.Added), string(watch.Modified), string(watch.Deleted), string(watch.Error), string(watch.Bookmark):
|
case string(watch.Added), string(watch.Modified), string(watch.Deleted), string(watch.Error), string(watch.Bookmark):
|
||||||
|
Loading…
Reference in New Issue
Block a user