-
Notifications
You must be signed in to change notification settings - Fork 296
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
GenericKubernetesApi Patch<T> does not work #971
Comments
linked #846 |
This may be happening b/c it is trying to do server-side apply on a version of Kubernetes that doesn't support it. |
Also possible that the Content-type is wrong. |
I am using 1.22.5 and patching works with manual kubectl |
I can help a bit here as I was running into this exact problem. try
{
// Make your request
}
catch(HttpOperationException ex)
{
Console.WriteLine(ex.Response.Content);
} That should at least give you a good hint about what's going wrong. I would bet that you're getting an error about not being able to use I would say that this is a straightforward fix to just make |
As there is no patch method on old GenericClient, I used patch with new GenericKuberenetesApi but it fails.
P.S.
all -- Read, List, Delete, Create -- works fine
my code looks like:
And error I am getting :
The text was updated successfully, but these errors were encountered: