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

Use dry-run in Diff when available. #649

Merged
merged 8 commits into from
Jul 24, 2019
Merged

Use dry-run in Diff when available. #649

merged 8 commits into from
Jul 24, 2019

Conversation

pgavlin
Copy link
Member

@pgavlin pgavlin commented Jul 23, 2019

These changes update Diff to calculate the new state for the patched
resource by requesting that the API server dry-run the patch when
possible. This avoids unexpected diffs due to server-side normalization
of values that are present in both the resource's configuration and its
state.

Fixes #644.

These changes update `Diff` to calculate the new state for the patched
resource by requesting that the API server dry-run the patch when
possible. This avoids unexpected diffs due to server-side normalization
of values that are present in both the resource's configuration and its
state.

Fixes #644.
pkg/provider/provider.go Outdated Show resolved Hide resolved
Copy link
Member

@lblackstone lblackstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nitpick. Looks great otherwise!

tests/integration/dry-run/step1/index.ts Outdated Show resolved Hide resolved
Co-Authored-By: Levi Blackstone <levi@pulumi.com>
@pgavlin pgavlin merged commit 7e3b99e into master Jul 24, 2019
@pulumi-bot pulumi-bot deleted the pgavlin/dryRun branch July 24, 2019 21:02
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.

API server normalization of values is causing a preview to show changes when one is not expected in testing.
2 participants