-
Notifications
You must be signed in to change notification settings - Fork 43
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
PF investigate support for PlanModifiers #2171
Comments
I expect plan modifiers to fully work, curious if you find a counter-example. |
I think that pulumi/pulumi-aws#4273 is an example of this in |
Not 100% sure about this anymore - tried to repro in pulumi-random: """A Python Pulumi program"""
import pulumi
import pulumi_random as random
resNumeric = random.RandomString(
"str1",
length=10,
numeric=False,
)
resNumber = random.RandomString(
"str2",
length=10,
number=False,
)
pulumi.export("number val 1", resNumeric.number)
pulumi.export("numeric val 1", resNumeric.numeric)
pulumi.export("number val 2", resNumber.number)
pulumi.export("numeric val 2", resNumber.numeric) These properties have plan modifiers and they seem to be working: https://github.com/hashicorp/terraform-provider-random/blame/455294a2038f3cf39a31f8eda231b95f190df250/internal/provider/resource_string.go#L453 The above program outputs False, False, False, False |
I can't reproduce the AWS issue anymore either if I use the latest bridge@master so something must have been fixed (I can reproduce on latest aws which is on [email protected]) |
This turned out to be a red herring - the test was set up wrong - plan modifiers are applied fine as long as the provider is implemented correctly to apply the plan, not the config: #2217 will add a regression test here. |
What happened?
Looking at the code around PF Diff it doesn't look like PlanModifiers are used in ProposedNew anywhere - does that mean we ignore these?
Example
This should yield a different plan then when the PlanModifier is missing.
Output of
pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: