csharp: PatchNamespacedDeploymentWithHttpMessagesAsync provokes a "UnprocessableEntity" exception

I updated the kubernetes-client from version 2.0.29 to the latest version 3.0.4. I’m using the method PatchNamespacedDeploymentWithHttpMessagesAsync to exchange the imageversion of a V1Deployment.

I passed a patch with the API object, the name and namespace like this:

var response = await _client.PatchNamespacedDeploymentWithHttpMessagesAsync(patchObject, deployment.Metadata.Name, deployment.Metadata.NamespaceProperty);

It results in this exception: image

Reverting the version to 2.0.29 causes the method to work perfectly fine again.

What has changed between the versions, that this exception occurs? Are there properties missing on the patch object?

Thank you in advance!

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Are there any code examples available to convert from json patching to merge patching? It seems like all of the existing patch examples in this repository use json, and would be broken by #476