terraform-provider-helm
terraform-provider-helm copied to clipboard
Larger diff than expected when updating helm_release 'set' 'value'
Description
Fix issue #915 where when re-deploying a helm_release after changing a 'set' 'value' the plan generated indicates that values not changing will be deleted and re-applied even though they have not been changed.
The issue is caused by the resource diff process removing the 'set' 'type' value from the state as it was not set in the original terraform code. When initially applying the plan the default value "" was used for the 'set' 'type' and stored in the state, when redeploying the original value of 'set' 'type' is requested but as no default has been set in the schema it is marked as removed, which then results in null being stored in the state for the value of 'set' 'type'. This causes an internal warning to be generated in the logs: "Provider "registry.terraform.io/hashicorp/helm" produced an unexpected new value for helm_release.test during refresh."
Acceptance tests
- [Y] Have you added an acceptance test for the functionality being added?
- TestAccResourceRelease_updateSetValue - confirms that 'type' is not lost when updating value.
Release Note
Release note for CHANGELOG:
Fix large diffs being generated when updating a 'set' 'value'
References
- #915
- Possible fix for #711
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
@jrhouston - as this is a first PR for terraform helm provider, is there anything more you might need/I've missed in this PR?
Hey @adcharre! did this fix #711 for you as well?
Hey @adcharre! did this fix #711 for you as well?
I've certainly not seen any issues since using this fix and the unit tests also suggests that it fixes problems with set blocks. Any help with a thumbs up on this PR to get it merged would be appreciated!
I've certainly not seen any issues since using this fix and the unit tests also suggests that it fixes problems with set blocks. Any help with a thumbs up on this PR to get it merged would be appreciated!
Thanks! do you have kind of your own private registry where you uploaded your custom build of the provider?
Who should we be requesting a review from to get this merged? seems like a very straightorward PR ...
Who should we be requesting a review from to get this merged? seems like a very straightorward PR ...
@fcrespofastly looking at the contributors and some previous PRs it looks like a key contributor is @jrhouston
Hey @jrhouston! 👋🏻 👋🏻 this seems like a pretty reasonable and straightforward PR, any chance we can get this merged? We currently can't render manifests which impacts our ability to validate the plan prior to apply.
Hey @jrhouston any chance you can take a look at this one?
Dear @jrhouston, @BBBmau
I noticed you recently helped merge and release few fixes, can you please spare a minute to get this fix in? this is a straightforward change and addresses both #915 & #711 🙏🏼
Hey @jrhouston 👋🏻 👋🏻 !
I noticed you reacted to @dkulchinsky's comment. Did you have a chance to review this PR? 🙏🏻
Thanks in advance!!
@jrhouston many thanks for reviewing and getting this merged 🙏🏼
could you also help to get this fix released in a new patch version?
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.