-
Notifications
You must be signed in to change notification settings - Fork 593
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
Fake ducks might not work with k8s 1.20 clients #5185
Comments
Ok I figured out how to fix this. For every GVK that will be used in the test you also need to register a ListKind, for example the
|
As a precursor this PR should setup the right schemes: #5477 This should enable my k8s bump (knative/pkg#2145) to re-wire these schemes to use |
/close This was fixed. |
@vaikas: Closing this issue. In response to this:
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. |
With upcoming changes to eventing DLQs will be defaulted to the namespace of their parent object if the namespace isn't specified in the ref. For some reason this causes a panic from the fake dynamic client that doesn't occur if the namespace isn't specified. It happens because ksvcs have been registered with the fake dynamic client as a type, but I'm not really sure why they only panic when a namespace is present. xref knative/eventing#5748 for the namespace defaulting change xref knative/eventing#5185 for more discussion of the changed behavior of client-go fake dynamic clients.
With upcoming changes to eventing DLQs will be defaulted to the namespace of their parent object if the namespace isn't specified in the ref. For some reason this causes a panic from the fake dynamic client that doesn't occur if the namespace isn't specified. It happens because ksvcs have been registered with the fake dynamic client as a type, but I'm not really sure why they only panic when a namespace is present. xref knative/eventing#5748 for the namespace defaulting change xref knative/eventing#5185 for more discussion of the changed behavior of client-go fake dynamic clients.
Describe the bug
Just jotting down this that might be a bug. While working on the rabbitmq broker, we noticed that if I used 1.20 k8s clients, I couldn't use ducks in our tests. Problem was a panic while doing a get for dynamic client. This results in a panic, and when reverting back to 1.19 it worked just fine.
@n3wscott for 👀 also.
Expected behavior
A clear and concise description of what you expected to happen.
To Reproduce
Steps to reproduce the behavior.
Knative release version
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: