-
Notifications
You must be signed in to change notification settings - Fork 379
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 metadata
computation cause helm_release to be updated in-place
#1236
Comments
Hi @sivanov-nuodb, I tried to reproduce this issue but I was not able to. Could you please provide us with the output of |
After some more investigation, it turned out that the problem is that an empty Is it correct for the provider to mark the resource for an in-place update if the latest Helm chart digest/version matches the one installed in the cluster? |
Yeah this is not the correct behaviour – I was able to reproduce this just by explicitly setting the We need to add some logic to the custom diff to ignore the case where terraform-provider-helm/helm/resource_release.go Lines 845 to 857 in 6bf6c4d
|
Thank you @jrhouston ! I'm eagerly waiting for such a PR, as there is a "related" bug on the workaround: Description:
turns out: when passing an explicit "null": terraform just stops upgrading helm charts when there is a newer version than the one currently installed. => fixing the issue from this ticket will allow me to remove this buggy workaround ;) (but then again, this might be worth a ticket on its own ?) |
Thank you @jrhouston for fixing this ! |
Thank for the fix, hope for a release soon |
Is there any move on this? There's another [similar] issue on #1150 |
I'm using version v2.12.1 of the provider but I'm still encountering the issue. |
Yes i tried also but the behavior remain... |
I too came back to this and tried to upgrade to 2.12.1, after reading the above I tried changing my version (for sonarqube) from version = "10.1.0" to version = "10.1.0+628" This has resolved the drift. I found the version using helm list and subsequently found the supported versions on artifact hub. Sorry if this seems specific to sonarqube but I imagine it may help others to fix the drift. |
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Debug Output
Show Output
Panic Output
N/A
Steps to Reproduce
The
helm_release
resource is marked for in-place update even though the input variables don't change.terraform apply
for the first timeterraform apply
without changing the configurationDowngrading from 2.11.0 (or 2.10.1) to 2.9.0 causes the issue to go away.
Expected Behavior
Terraform should report no changes in the plan.
Actual Behavior
Instead, the resource is updated in-place due to metadata change.
Important Factoids
The Helm chart is fetched from AWS ECR configured as OCI repository.
References
Community Note
The text was updated successfully, but these errors were encountered: