-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no DeepCopyObject() method for watch.Event type #18
Comments
@fatih please take a look at kubernetes/client-go#259. Sounds like the same problem, i.e. vendoring of the wrong apimachinery version. |
@sttts Thanks for the info. But we're using now the latest apimachinery and I think this type should have this method anyway as it might be needed (we do now). Is there a way we could add these ? |
@fatih got it. I am hestitant to turn |
@sttts sure, but seems like it's not the same struct. It expects a
I'm using it for testing a
If there is any other solutions I'm happy to test it, but adding the |
Compare vendor/k8s.io/apiserver/pkg/endpoints/handlers/watch.go:221. That's the http watch server in kube. It converts the |
Thanks @sttts. |
@fatih does this work for you? Can we close the issue? |
@sttts Sure, thanks for the help again. |
Hi,
We're using the
watch.Event
type in our internal code base extensively. Some of the places encode it as well. After upgrading to latest client-go it stopped compiling because of the missing methodDeepCopyObject
. Seems like the following line is missing (https://github.com/kubernetes/apimachinery/blob/master/pkg/watch/watch.go#L54):Can we generate this method for this type as well? I can open a PR but wasn't sure if that was intentionally like this.
The text was updated successfully, but these errors were encountered: