-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
k8s.ReplaceNamespacedCustomObject() extension isn't working #1879
Comments
Where is it not working? |
Here's a simple repro (an existing cluster is required):
...and here's the error:
Looks like we need to pass the original resource's resourceVersion. I spent a couple minutes playing around with that but then set it aside to look at later. I noticed this when single-stepping through the V1Telemetry creation in namespaces code during cluster setup, when I quit debugging after one resource was created and then restarted setup and I expected that it would just update the first existing resource and then finish creating the other resources. But the upsert call failed on that existing resource. I've worked around this by using |
Fixed |
The k8s.ReplaceNamespacedCustomObject() extension method is failing with UnprocessableEntity errors. This is probably happening with the cluster custom objects as well. This is impacting our Upsert related methods when the resource already exists. The base k8s.ReplaceNamespacedCustomObject() isn't documented anymore for .NET and is barely documented for other languages.
Perhaps we can use one of the patch related methods instead.
The text was updated successfully, but these errors were encountered: