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

helm_release: Suppress diff of "keyring" and "devel" attributes #193

Merged
merged 3 commits into from
Feb 8, 2019

Conversation

legal90
Copy link
Contributor

@legal90 legal90 commented Jan 30, 2019

  • Suppress diff of devel attribute if version is set. In this case devel attribute is not used at all and its value shouldn't affect the resource state.

  • Suppress diff of "keyring" attribute regardless of anything else. This attribute is only used for verifying chart on the download phase, and it is just a local path. So its value in the terraform state doesn't really matter.

Fixes #52

@ghost ghost added the size/XS label Jan 30, 2019
Copy link

@rporres rporres left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution, @legal90. Would it be possible to add tests for this too?

helm/resource_release.go Show resolved Hide resolved
This attribute stores only the local path. Changes doesn't necessarily affect the resource state.
@legal90
Copy link
Contributor Author

legal90 commented Feb 6, 2019

Would it be possible to add tests for this too?

I guess, that should be a unit test for the terraform.State (or terraform.InstanceState?). I tried to create it, but didn't find a proper example for that :(

@rporres
Copy link

rporres commented Feb 8, 2019

The real test here would be to have a test for verify... Since it's out of the scope of your change, I will merge it as it is. Thanks for your contribution.

@rporres rporres merged commit 1aca51a into hashicorp:master Feb 8, 2019
@legal90 legal90 deleted the suppress-diff branch February 8, 2019 11:09
@legal90
Copy link
Contributor Author

legal90 commented Feb 8, 2019

@rporres Thank you!

@alexsomesan alexsomesan added this to the v0.8.0 milestone Feb 11, 2019
@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keyring constantly changing
3 participants