Skip to content
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

Omit unknowns in resources in stack outputs during preview. #3427

Merged
merged 4 commits into from Oct 30, 2019

Conversation

pgavlin
Copy link
Member

@pgavlin pgavlin commented Oct 29, 2019

If a stack output includes a Resource, we will as of a recent change
always show the output diff, but this diff will potentially include
unknowns, leading to spurious output like:

+ namePrefix : output<string>

These changes supress these diffs by adding a special key to the POJO
we generate for resources during preview only that indicates that the
POJO represents a Pulumi resource, then stripping all adds of unknown
values from diffs for objects marked with that key.

Fixes #3314.

@pgavlin pgavlin force-pushed the pgavlin/previewStackOutputResourceUnknowns branch from fc4f960 to 11448e6 Compare October 29, 2019 23:57
If a stack output includes a `Resource`, we will as of a recent change
always show the output diff, but this diff will potentially include
unknowns, leading to spurious output like:

```
+ namePrefix : output<string>
```

These changes supress these diffs by adding a special key to the POJO
we generate for resources *during preview only* that indicates that the
POJO represents a Pulumi resource, then stripping all adds of unknown
values from diffs for objects marked with that key.

Fixes #3314.
@pgavlin pgavlin force-pushed the pgavlin/previewStackOutputResourceUnknowns branch from 6b3ca6a to df587bd Compare October 30, 2019 17:22
@pgavlin pgavlin merged commit c383810 into master Oct 30, 2019
@pulumi-bot pulumi-bot deleted the pgavlin/previewStackOutputResourceUnknowns branch October 30, 2019 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unknowns in stack outputs should be omitted from diffs
2 participants