You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens when there is an acronym e.g. "CIDR" that is pluralized with a lowercase "s" e.g. "CIDRs". The PyName() algorithm categorizes the "Rs" as a separate word.
These properties are already in the SDK so merely replacing the existing values with the "correct" translation would be a breaking change.
I'd really like to get these "right" as part of doing pulumi/pulumi#3771. For the generated types, we can use the "correct" naming we want and still maintain the old naming for the "old" way of doing things with untyped dicts for backwards compatibility.
@justinvp@lblackstone any thoughts on what we might want to do here? If we do fix the PyName() algorithm this will result in a breaking change for pulumi-kubernetes.
Now's our opportunity to use the "right" names on the input/output types. I'd be in favor of fixing PyName() to better handle these, and then have some kind of fallback that maintains the old behavior (e.g. PyNameLegacy()?) that would only be used in the small number of places where the old names need to remain for compatibility (e.g. when generating the mapping tables).
Problem description
There are a number of properties that have unexpected translations to snake_case. Examples:
This happens when there is an acronym e.g. "CIDR" that is pluralized with a lowercase "s" e.g. "CIDRs". The
PyName()
algorithm categorizes the "Rs" as a separate word.These properties are already in the SDK so merely replacing the existing values with the "correct" translation would be a breaking change.
Suggestions for a fix
Consider the lowercase 's' a part of the acronym. pulumi/pulumi#4918
Note: This doesn't account for backwards compatibility.
The text was updated successfully, but these errors were encountered: