-
Notifications
You must be signed in to change notification settings - Fork 376
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: deprecated #466
Conversation
@mcuadros @jrhouston this should work then but it wont: resource "helm_release" "postgres" {
# https://github.com/zalando/postgres-operator/blob/master/charts/postgres-operator/values-crd.yaml
name = "postgres"
version = "1.4.0"
dependency_update = true
description = "postgres HA stack zalando/postgres-operator"
cleanup_on_fail = true
atomic = true
repository = "https://opensource.zalando.com/postgres-operator/charts/postgres-operator"
chart = "postgres-operator"
} it fails with
but the file is there, so im a bit confused
provider version: |
it only works if i manually added the helm repo from the CLI
|
I use CI so
It working for me for weeks. And I have example with custom repositories and also with the stable one. |
can you try it with the zalando operator? another weird issue is this: // working
resource "helm_release" "certs" {
version = "v0.15.0-alpha.0"
repository = " https://hub.helm.sh" #TODO why this space WTF? without it doesnt work
chart = "jetstack/cert-manager"
}
//doesnt work
resource "helm_release" "certs" {
version = "v0.15.0-alpha.0"
repository = "https://hub.helm.sh"
chart = "jetstack/cert-manager"
} |
@mcuadros you are sure you dont have a repository data source anymore? maybe its still persistent in the state file?! |
The data sources are not persisted by definition in the state since they don't represent the desired state, the data source are used to retrieve data from the state or the real infrastructure. All the URL handling is done by Helm himself, can you try with a clean environment? I never had any issue using URLs, at least in the last configuration I did. I will try with yours. NOTE: The repository URL for the cert should be |
// working
resource "helm_release" "certs" {
version = "v0.15.0-alpha.0"
repository = " https://hub.helm.sh" #TODO why this space WTF? without it doesnt work
chart = "jetstack/cert-manager"
}
//doesnt work
resource "helm_release" "certs" {
version = "v0.15.0-alpha.0"
repository = "https://hub.helm.sh"
chart = "jetstack/cert-manager"
} i forget |
resource "helm_release" "example" {
name = "example"
version = "v0.15.0-alpha.0"
repository = "https://charts.jetstack.io"
chart = "cert-manager"
} |
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! |
Description
This PR deprecates
helm_repository
, this data source has several problems:helm_repository
modify the state, a data source shouldn't modify the state (by definition).Since if we remove the capabilities of install the repository on the local machine, the resource results in a POJO, with no value other than host the variables to be reused in the
helm_release
resource.The suggested new recommended behavior is to use
variables
to avoid de repetition of the repository URL or any other repository related values.Acceptance tests
References
Fix #416
Fix #335