-
Notifications
You must be signed in to change notification settings - Fork 159
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
Swap CtyInstanceState with PlanResourceChange flag #3359
Conversation
Does the PR have any schema changes?Does the PR have any schema changes?Looking good! No breaking changes found. Maintainer note: consult the runbook for dealing with any breaking changes. |
This slightly regressed on the ability to cleanly refresh the state for the example program #3361 - but the unclean refresh now matches TF actual changes. It's in a broad category of issues of this sort, we need to figure out the policy for it. So I slightly am leaning on recommending to merge this in so we can retire CtyInstanceState. |
The unclean refresh is rather unfortunate but probably not a big deal. Does refresh run Diff? Could we add some diff customization for these properties to say null and empty are the same? |
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.
Let's retire CtyInstanceState
. Diff (as supplied by the bridge) should mirror TF. We can think of adding diff customizers for this resource later if it becomes necessary.
Yes. I still think we might want to work that one out to be more friendlier but it is indeed somewhat tolerable. |
That I think is not quite it, we currently match TF as TF has non-empty refresh also! I think we don't want to modify TF behavior. Instead I think we need to collect all instances of this benign non-empty refresh (there's a lot) and put some generic targeted workaround that makes the Pulumi experience better. Perhaps suppress refresh diffs from nil to empty list under right schema condition or some such. |
Co-authored-by: Ian Wahbe <[email protected]>
An experiment to see if PlanResourceChange can substitute for CtyInstanceState while still handling wafv2_web_acl resource correctly. See #3361