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

Remove all or none of object keys in set #859

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shakhovski
Copy link

Please refer to my analysis from hashicorp/terraform-provider-helm#817 to find out how the current behavior makes terraform-provider-helm create inconsistent final plan when value in set refers to unknown value that actually doesn't change after apply.

It looks that all object keys in set defined in schema are meant to be always present while object still in set. So my proposal is to delete a key from an object only when all keys of that object get deleted, which means an object itself gets deleted from set.

The latest 2.4.1 version of terraform-provider-helm uses terraform-plugin-sdk 2.8.0. I rebuilt and checked with 2.10.1 and the problem is still there.

I'm not a go/tf developer, so my code may be ugly and my reasoning may be absolutely wrong. So please be patient. At least it fixes hashicorp/terraform-provider-helm#817.

@shakhovski shakhovski marked this pull request as draft January 25, 2022 18:37
@shakhovski shakhovski marked this pull request as ready for review February 2, 2022 17:39
@shakhovski
Copy link
Author

Guys, I see the similar fix was proposed 2 years ago, but not merged #359
The problem is still there, what does prevent the fix from being applied?

@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

@bflad bflad self-assigned this Mar 15, 2022
@bflad bflad added the bug Something isn't working label Mar 15, 2022
@c0bra
Copy link

c0bra commented May 19, 2022

Is there anything that can be done to push this (or any other) fix forward? This bug is preventing us from being able to properly cut releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
5 participants