-
Notifications
You must be signed in to change notification settings - Fork 374
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_repository does not refresh on apply #335
Comments
Seeing this as well on terraform cloud. |
I've been seeing this everywhere on Terraform cloud. Including some random "error: Unauthorized" messages. I believe this to be just an overall issue due to the design of this module. |
I ran into this as well, and this is a working fix in my environment. Our |
Using a repo URL in repository param should work instead of using the data resource. |
I've found the same problem still occurs on v1.0.0 of the provider as well, and I had to resort to using the repo URL, instead of the datasource. |
I've found with v1.0.0 of the provider, with helm v3 not having the stable repo by default anymore, I was able to add this datasource and deploy nicely: data "helm_repository" "stable" {
name = "stable"
url = "https://kubernetes-charts.storage.googleapis.com"
} |
I think this is the same issue I have discussed here: #416 (comment) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Brief description
The provider doesn't work well in CI environments where each step is run in a completely clean environment (i.e. Terraform Cloud/Enterprise). It expects state from the plan stage to be available (when doing a
plan to file
->apply plan file
workflow).Terraform Version
terraform version
Terraform v0.12.8
Affected Resource(s)
Terraform Configuration Files
Debug Output
I didn't run terraform in debug because I doubt it would help with the current problem.
I did gather the state of the system at apply time. Below is the
~/.helm/repository/repositories.yaml
file. As you can see, it's missing theincubator
repo.Expected Behavior
The provider should have updated the
repositories.yaml
file during the apply phaseActual Behavior
Error: repo incubator not found
and indeed the repo does not exist in the
repositories.yaml
fileSteps to Reproduce
The easiest way I can think of would be to run
terraform plan -out=/path/to/plan.out
in a docker container. Then runterraform apply /path/to/plan.out
in a separate container that has the same plan outputImportant Factoids
This is all currently running in Terraform Cloud (Hosted Enterprise product). When it was running locally on my laptop, it was fine.
The text was updated successfully, but these errors were encountered: