Both "jsonPath" and "JSONPath" currently map to "json_path" in the camelCase to snake_case conversion which results in one of those properties being mapped back incorrectly. We need this to not happen.
More context: https://github.com/pulumi/pulumi-kubernetes/pull/1160#discussion_r445205353
Let's also make sure we have a plan for this with https://github.com/pulumi/pulumi/issues/3771
@justinvp I think #4789 actually resolves this? Should I reassign to you?
I think #4789 actually resolves this? Should I reassign to you?
Yeah, I'd be ok treating #4789 as resolving this. I'll reassign to myself.
I suppose we could consider enhancing our mapping table scheme to better accommodate this, but I don't think it's worth it for a couple reasons:
Using the input/output classes doesn't have this problem as the snake_case names always map to the correct Pulumi name, and we want folks to adopt this new approach going forward. (We may choose to deprecate the "old way" where this is problematic in the next major provider revision anyway).
In this particular case, JSONPath is coming from kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceColumnDefinition (v1beta1), whereas the v1 is jsonPath. We're currently using the v1 casing in our mapping tables, and using that over the v1beta1 casing makes sense to me.
I'm going to close this since #4789 will resolve it.