-
Notifications
You must be signed in to change notification settings - Fork 377
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
metadata
always recomputes, causing redeployment for every single plan-apply
#1344
Comments
Hi @meysam81, thanks for opening this issue. terraform-provider-helm/helm/resource_release.go Lines 845 to 857 in d533734
|
For now the workaround would be to specify the exact version. |
I confirm that v1.16.0 has fixed the metadata change, specifically and in my use case, the wildcard versioning of the helm release is resulting in a correct behavior. Here's a minimal working example (applying this stack twice won't show changes on terraform {
required_providers {
helm = {
source = "hashicorp/helm"
version = "2.16.0"
}
}
}
provider "helm" {
kubernetes {
config_path = "~/.kube/config"
}
}
resource "helm_release" "this" {
name = "redis"
repository = "https://charts.bitnami.com/bitnami"
chart = "redis"
namespace = "default"
create_namespace = false
version = "20.x"
} |
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/meysam81/8b4c8805d7dcfa7dd116443c4cc42841
NOTE: In addition to Terraform debugging, please set HELM_DEBUG=1 to enable debugging info from helm.
Panic Output
Steps to Reproduce
Either of the following:
terraform apply
terraform plan -out tfplan && terraform apply tfplan
Expected Behavior
Even in the case where the latest chart version is the same as the running helm-release, it is still updating the metadata and trying to re-deploy the release. A frustrating experience really. Ansible helm module is doing a much better job in this regards when it comes to idempotency.
The funny thing is, if you pin the version to exact version, e.g.
19.0.1
, this won't happen and aNo changes
will be printed on the screen. But any version wildcard versioning causes the release to recompute the metadata. 🤷Actual Behavior
It finds
metadata
changed for every single plan-apply.Important Factoids
Nothing special. I have tried this in different clusters with different versions. All have the same outcome.
References
metadata
to always be recomputed with some helm charts. #1150Community Note
The text was updated successfully, but these errors were encountered: