-
Notifications
You must be signed in to change notification settings - Fork 928
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
Error from karmada-search: apiserver was unable to write a JSON response #6129
Comments
So, what is the problem that bothers you now? Do you mean you want to get a recommended way to avoid that |
Can the server handle the request that sent by the client with the default header "accept: application/vnd.kubernetes.protobuf,application/json"? We have several k8s, and we don't want to add a field into our mysql table like "accetType" to specify AcceptContentTypes of the restConfig of the clientSet. |
Do you mean the server can only respond with Any idea to achieve that? |
Yes. The problem is i can't use the clientSet with the default config to get info from karmada-search. I need to explicitly set acceptType to |
Would you like to dig into it and try to work out a solution for your case? Feel free to send a PR for it. |
Please provide an in-depth description of the question you have:
Guided by the blog: https://karmada.io/docs/tutorials/karmada-search/, i want to get pod from the true K8s.
What i did:
If i specify the restConfig of the clientSet like this:
restConfig.AcceptContentTypes = "application/json"
, the problem is gone.The default AcceptContentTypes is like this:
What do you think about this question?:
Environment:
The text was updated successfully, but these errors were encountered: