mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Rename metav1.Event to metav1.WatchEvent to avoid swagger collision
The kind on this object was always WatchEvent
This commit is contained in:
@@ -238,7 +238,7 @@ func TestEncodeToStreamForInternalEvent(t *testing.T) {
|
||||
Kind: "Foo",
|
||||
}, delegate: testapi.Extensions.Codec()}
|
||||
buf := bytes.NewBuffer([]byte{})
|
||||
expected := &metav1.Event{
|
||||
expected := &metav1.WatchEvent{
|
||||
Type: "Added",
|
||||
}
|
||||
err := e.Encode(&metav1.InternalEvent{
|
||||
|
||||
Reference in New Issue
Block a user