-
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_release does not allow https or oci for azure container registry #964
Comments
Hello @vikrantoct7 ! Thank you for opening this issue. It looks like you're including the name of the chart in the repository URL here:
Try this instead:
|
Hi @BBBmau , i have already tried this..this was also not working |
|
Hi @BBBmau Thanks for this, It has worked for me. |
I don't believe that this is a bug. In the code that you shared, it appears that you aren't authenticating to acr in the first place.
then you should pass
to your helm_release resource. |
I second this for resource "kubernetes_secret" "app-registry-secret" {
metadata {
name = "harvestos-registry-secret"
namespace = "harvest"
}
type = "kubernetes.io/dockerconfigjson"
data = {
".dockerconfigjson" = jsonencode({
auths = {
"${var.oci_registry}" = {
"username" = var.gh_username
"password" = var.gh_password
"email" = var.gh_email
"auth" = base64encode("${var.gh_username}:${var.gh_password}")
}
}
})
}
depends_on = [
var.eks_cluster,
kubernetes_namespace.namespace
]
} |
@0xMH well i did not try that solution.. Even i did not get such solution in Teraform examples or anywhere else. |
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Debug Output
Could not download chart: looks like https://pocacringress.azurecr.io/helm/hello-world is not valid chart repository or cannot reached: failed to fetch https://pocacringress.azurecr.io/helm/hello-world//index.yaml: 404
NOTE: In addition to Terraform debugging, please set HELM_DEBUG=1 to enable debugging info from helm.
Panic Output
Steps to Reproduce
terraform init
terraform apply --auto-approve
Expected Behavior
Chart should be fetch. by helm_release directly. it should support oci and https both protocol. we tried with both.
however helm pull oci://pocacringress.azurecr.io/helm/hello-world --version 0.1.0 --untar worked well
Actual Behavior
error using https
Could not download chart: looks like https://pocacringress.azurecr.io/helm/hello-world is not valid chart repository or cannot reached: failed to fetch https://pocacringress.azurecr.io/helm/hello-world//index.yaml: 404
error using oci
Could not download chart: looks like oci://pocacringress.azurecr.io/helm/hello-world is not valid chart repository or cannot reached: failed to fetch oci://pocacringress.azurecr.io/helm/hello-world//index.yaml: 404
Important Factoids
References
https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release
#765
Community Note
The text was updated successfully, but these errors were encountered: