-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[codegen/go] - Inputty Go enums #7383
Conversation
Diff for pulumi-random with merge commit adfd90e |
Diff for pulumi-azuread with merge commit adfd90e |
Diff for pulumi-kubernetes with merge commit adfd90e |
Diff for pulumi-gcp with merge commit adfd90e |
Diff for pulumi-azure with merge commit adfd90e |
Diff for pulumi-aws with merge commit adfd90e |
Diff for pulumi-random with merge commit c8eda8d |
Diff for pulumi-kubernetes with merge commit c8eda8d |
Diff for pulumi-azuread with merge commit c8eda8d |
Diff for pulumi-random with merge commit 6b1a86b |
Diff for pulumi-azuread with merge commit 6b1a86b |
Diff for pulumi-kubernetes with merge commit 6b1a86b |
Diff for pulumi-gcp with merge commit c8eda8d |
Diff for pulumi-azure with merge commit c8eda8d |
Diff for pulumi-gcp with merge commit 6b1a86b |
Diff for pulumi-azure with merge commit 6b1a86b |
Diff for pulumi-aws with merge commit c8eda8d |
Diff for pulumi-aws with merge commit 6b1a86b |
Diff for pulumi-random with merge commit 1768179 |
Diff for pulumi-kubernetes with merge commit 1768179 |
Diff for pulumi-azuread with merge commit 1768179 |
Diff for pulumi-gcp with merge commit 1768179 |
Diff for pulumi-azure with merge commit 1768179 |
Diff for pulumi-aws with merge commit 1768179 |
ac49a7b
to
adac739
Compare
Diff for pulumi-random with merge commit c4fd5bd |
Diff for pulumi-random with merge commit 93710de |
Diff for pulumi-azuread with merge commit 93710de |
Diff for pulumi-gcp with merge commit 93710de |
Diff for pulumi-azure with merge commit 93710de |
I have done my best to update downstream providers, but unfortunately, there are issues with k8s and azure-native that are unlikely to be resolved within the timeline needed for this PR. I request that you review my PR based on the downstream codegen tests that do work, and the codegen tests within the pulumi/pulumi repo which test both the code generation as well as the usability of the generated enums. |
assert.Equal(t, *size, plant.ContainerSize(22), "unexpected size on resource: %v", urn) | ||
assert.Equal(t, typ, tree.RubberTreeVarietyRuby, "unexpected type on resource: %v", urn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that it is no longer possible to pass in untyped strings/integers to strict enums. This is in line with how strings must be wrapped in pulumi.String
to function correctly.
Diff for pulumi-aws with merge commit 93710de |
@pgavlin can you take a look? 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just one question about a small simplification.
Diff for pulumi-random with merge commit edaa68d |
Props for tests that run generated code! Awesome. |
Description
Fixes #7351
Checklist