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

Return to diffing inputs for resources w/o dry run. #658

Merged
merged 2 commits into from
Jul 26, 2019

Conversation

pgavlin
Copy link
Member

@pgavlin pgavlin commented Jul 26, 2019

Due to normalization performed by the API server, the recent changes to
use a kubectl-style merge patch approach when diffing resources often
results in spurious diffs. This interacts particularly badly with
resources like Secret where the spurious diffs cause unnecessary
resource replacements. These changes return to the earlier input-based
diff logic for resources and/or API servers that do not support dry-run.

Fixes #653.

Due to normalization performed by the API server, the recent changes to
use a kubectl-style merge patch approach when diffing resources often
results in spurious diffs. This interacts particularly badly with
resources like `Secret` where the spurious diffs cause unnecessary
resource replacements. These changes return to the earlier input-based
diff logic for resources and/or API servers that do not support dry-run.

Fixes #653.
pkg/provider/provider.go Show resolved Hide resolved
pkg/provider/provider.go Show resolved Hide resolved
@pgavlin pgavlin merged commit d11fdd8 into master Jul 26, 2019
@pulumi-bot pulumi-bot deleted the pgavlin/inputPatch branch July 26, 2019 20:16
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.

Setting .stringData in v1/Secret results in Pulumi triggering a replace on every update
2 participants