-
Notifications
You must be signed in to change notification settings - Fork 115
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
CustomResource update fails with "the body of the request was in an unknown format" error #1774
Comments
I'm also having this exact same issue with knative service component. |
I think that this might help. upgrade calls |
@lblackstone Any plans to look into this issue? If I'm not mistaken, Knative is becoming quite popular and this bug renders Knative's revision-based deployment useless (i.e. no versioning, rollbacks, gradual deployment, etc). |
Are there any updates on the CR between the If there is anything sensitive we can arrange sharing this privately. |
Hi, I have the logs off of the command you sent but in case there's some sensitive information I'd like to send this privately (besides, there's an insane amount of logs) - let me know how and I can send it over. Thanks for looking into this! |
Acknowledging I have logs from @seunggs for this. Will post update once I am done looking through. |
So I am not sure why the engine is trying to do an update even though there is no change in the code for the CR. This might be because of the provider performing a three-way strategic merge (fetching live state from server). I believe the specific issue is due to the following code: pulumi-kubernetes/provider/pkg/openapi/openapi.go Lines 97 to 104 in bebc483
In this case, the kind of the CR is "Service" which is misconstrued to refer to core service and ends up trying to use the three way strategic merge for the CR - resulting in the failure. This test needs to be strengthened to specifically look for fully qualified kinds instead. |
@lblackstone and @viveklak thanks for the quick fix! When will this fix be released? |
Awesome! 🎉 I can confirm that Knative revisions are now getting created properly on code update:
Thanks for the quick turnaround on this! |
Hello!
Issue details
When running
pulumi up
for the second time, CustomResource fails to update with the error:Currently using @pulumi/pulumi ^3.10.1 and @pulumi/kubernetes ^3.6.0
Steps to reproduce
Run
pulumi up
with a CustomResource for Knative service (runs fine the first time the resource is created but fails for every subsequentpulumi up
):Expected: Expected the CustomResource to be updated without error
Actual: Works fine on first
pulumi up
but fails on update (i.e. every subsequentpulumi up
)The text was updated successfully, but these errors were encountered: