-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compute version field in Check, use 3-way diff (#2672)
<!--Thanks for your contribution. See [CONTRIBUTING](CONTRIBUTING.md) for Pulumi's contribution guidelines. Help us merge your changes more quickly by adding more details such as labels, milestones, and reviewers.--> ### Proposed changes <!--Give us a brief description of what you've done and what it solves. --> This PR stabilizes Helm upgrades **by abandoning the use of checksums** (which was added in v4.5.0, see [PR](#2568)), while allowing for local chart change detection via the chart's version number. That is, the user would be expected to touch the chart's version to compel Pulumi to roll out the change. Implementation-wise, this is accomplished by resolving the `version` property during `Check`. The checked input reflects the goal version, and if the goal has changed, then `Diff` detects this in the natural way and effects an upgrade. `Check` no longer uses `helm template` to render the chart, it simply resolves the chart version. The diff logic is improved here to use a three-way merge, to be able to detect drift in the actual Helm release. The refresh logic is improved to not mutate inputs (as was done in the past to help with drift detection). ### Related issues (optional) Closes #2649 <!--Refer to related PRs or issues: #1234, or 'Fixes #1234' or 'Closes #1234'. Or link to full URLs to issues or pull requests in other GitHub repositories. -->
- Loading branch information
1 parent
9078fd3
commit d90d153
Showing
10 changed files
with
198 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.