Skip to content
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

Remove the hack around fake client list bugs. #590

Closed
vaikas opened this issue Nov 8, 2018 · 4 comments
Closed

Remove the hack around fake client list bugs. #590

vaikas opened this issue Nov 8, 2018 · 4 comments

Comments

@vaikas
Copy link
Contributor

vaikas commented Nov 8, 2018

Expected Behavior

That we could just use the dynamic client as is.

Actual Behavior

We have some workarounds in the code like this:
https://github.com/knative/eventing/blob/master/pkg/controller/eventing/subscription/reconcile.go#L302
'''
// TODO this is here because the fake client needs it. Remove this when it's no longer
// needed.
Raw: &metav1.ListOptions{
TypeMeta: metav1.TypeMeta{
APIVersion: v1alpha1.SchemeGroupVersion.String(),
Kind: "Subscription",
},
'''

Additional Info

Looks to have been fixed upstream here:
https://github.com/kubernetes/kubernetes/pull/66078/files

And is part of client-go release 9.

@grantr
Copy link
Contributor

grantr commented Nov 8, 2018

This is actually a workaround required by the controller-runtime fake client. A fix for it was included in kubernetes-sigs/controller-runtime#106 but that was reverted later due to separate concerns. I need to find time to extract the fix into a separate PR, which will probably also fix kubernetes-sigs/controller-runtime#137 (mentioned at #595 (comment)).

@vaikas
Copy link
Contributor Author

vaikas commented Nov 8, 2018

ah, ok. cool.

@mikehelmick
Copy link
Contributor

mikehelmick commented Jul 25, 2019

/kind wont-fix
this is obsolete

/close

@knative-prow-robot
Copy link
Contributor

@mikehelmick: Closing this issue.

In response to this:

/label wont-fix
this is obsolete

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants