Rename metav1.Event to metav1.WatchEvent to avoid swagger collision

The kind on this object was always WatchEvent
This commit is contained in:
Clayton Coleman
2017-01-05 15:10:34 -05:00
parent c5d755dbec
commit f07c6486ba
13 changed files with 34 additions and 32 deletions

View File

@@ -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{