mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-12 21:32:10 +00:00
Fix typo in type name of watch decode error
Kubernetes-commit: fed49d06aac3f003f7b2df35ffed6b2f16ef2548
This commit is contained in:
committed by
Kubernetes Publisher
parent
354ed1bc9f
commit
55c0e2c777
@@ -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):
|
||||||
|
Reference in New Issue
Block a user