-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
NullPointerException for CustomResource - (missing default handler for GenericKubernetesResource) #3392
Comments
The NPE has been replaced with a KubernetesClientException. I don't think you can do this generically as the item does not provide if it's namespaced nor what the plural is. Try instead: |
Being able to do this is part of the Generic Resource next steps and should be possible after implementing:
So for those (valid) resources for which we don't have enough information to interact with the API server, we could perform (and cache) a request to the ApiGroupList and ApiResourceList endpoints to fetch the required parameters (scope, plural, etc.). With this information, then we can interact with the API server for any valid (and known) resource. |
There is a placeholder method for that in Handlers kubernetes-client/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/Handlers.java Line 49 in 8d380a3
|
Hello!
I would like to ask you if it would be possible to implement default handler for GenericKubernetesResource?
For example, resource
when loaded by:
Returns:
The text was updated successfully, but these errors were encountered: