ericchiang / k8s

A simple Kubernetes Go client
Apache License 2.0
599 stars 108 forks source link

apis/core/v1: Register Event and EventList #113

Closed keegancsmith closed 5 years ago

keegancsmith commented 5 years ago

I see the package I modified is just a codemod of an upstream pkg. Any idea why events is not registered upstream? It is a valid resource to interact with.

msharbaji commented 5 years ago

@ericchiang Can you please check if you can merge this request?

I have tried to use events/v1beta1 but didn't work getting page not found, and for core/v1 is wroking

ericchiang commented 5 years ago

This file is generated, you'll need to modify this instead https://github.com/ericchiang/k8s/blob/master/scripts/register.go

As a workaround, you can just register this in your own code:

func init() {
    k8s.Register("", "v1", "events", true, &v1.Event{})
    k8s.RegisterList("", "v1", "events", true, &v1.EventList{})
}
ericchiang commented 5 years ago

118