-
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
Can't use helm provider v1 with plan & apply on different machines #416
Comments
I'm experiencing the same issue with running
(Even though it works locally) |
I was able to reproduce this problem locally with the following steps using this example: provider "helm" {}
data "helm_repository" "stable" {
name = "stable"
url = "https://kubernetes-charts.storage.googleapis.com"
}
resource "helm_release" "example" {
name = "example"
repository = "stable"
chart = "postgresql"
}
I was able to work around this by removing the provider "helm" {}
resource "helm_release" "example" {
name = "example"
repository = "https://kubernetes-charts.storage.googleapis.com"
chart = "postgresql"
} The problem here seems to be that the So when we output a plan and try to run it on a fresh machine, the There's a few paths forward here:
Thoughts on the above would be much appreciated. |
@jrhouston thank you for your suggestion, this has worked very well for me provider "helm" {
debug = true
version = "~> 1.0.0"
kubernetes {
host = azurerm_kubernetes_cluster.aks.kube_config.0.host
client_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_config.0.client_certificate)
client_key = base64decode(azurerm_kubernetes_cluster.aks.kube_config.0.client_key)
cluster_ca_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_config.0.cluster_ca_certificate)
load_config_file = false
}
} |
Closing this issue since is making reference to a version based on Helm 2, if this is still valid to the master branch please reopen it. Thanks. |
No, this issue still exists, although it can be overcome by not using the helm_repository and instead including the repo directly in the helm_release |
Still seeing the issue when specifying the incubator repo url
Provider version 1.0 |
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! |
Hello
There is an issue with running plan & apply on different build agents in a CI CD pipeline. It is document here
The use of the home key in the provider worked fine in helm provider < 1.0. for example:
However, when upgrading the provider to version 1.0, the home key is invalid anymore
This key can be removed and terraform will work fine as long as the plan & apply both done on the same machine (e.g. developer's laptop)
But when running the plan and apply on different machines (for example, during a CI / CD process) this will break since the /.helm folder doesn't exist on the agent, causing the deployment of the helm release to fail. for example:
failure in apply phase:
please note that it is not a problem with the configuration / etc:
How can I accomplish the same scenario (plan & apply on separate machines) using the new provider version (and finally remove tiller 😄 )?
Omer
The text was updated successfully, but these errors were encountered: