You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key./*resource "helm_release" "karpenter" { namespace = "kube-system" name = "karpenter" repository = "https://charts.karpenter.sh" //buggy fails login, most frustrating "oci://public.ecr.aws/karpenter" //repository_username = data.aws_ecrpublic_authorization_token.token.user_name //repository_password = data.aws_ecrpublic_authorization_token.token.password chart = "karpenter" version = var.karpenterchartversion //1.0.0 wait = false values = [ <<-EOT serviceAccount: name: ${module.karpenter.service_account} settings: clusterName: ${module.eks.cluster_name} clusterEndpoint: ${module.eks.cluster_endpoint} interruptionQueue: ${module.karpenter.queue_name} EOT ]
Debug Output
You can apply this plan to save these new output values to the Terraform state, without changing any real infrastructure.
╷
│ Error: could not login to OCI registry "public.ecr.aws": login attempt to https://public.ecr.aws/v2/ failed with status: 403 Forbidden
│
│ with helm_release.karpenter,
│ on eks.tf line 136, in resource "helm_release" "karpenter":
│ 136: resource "helm_release" "karpenter" {
│
NOTE: In addition to Terraform debugging, please set HELM_DEBUG=1 to enable debugging info from helm.
Can't run debug now, have removed the code from terraform and plan on using the helm --install for karpenter on bash prompt.
Panic Output
Steps to Reproduce
terraform plan and apply both produce the error. impossible to proceed, tries all tricks available on the net
In the end, removed the resource from state file and then commented out from the .tf file.
Login to oci://public.ecr.aws should refresh when a token has expired. Neither deleting ~/.config/helm nor removing the entire .terraform folder helps. Helm login from CLI(bash) works but as a terraform resource 'helm_release' always fails to login to oci://public.ecr.aws
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Debug Output
You can apply this plan to save these new output values to the Terraform state, without changing any real infrastructure.
╷
│ Error: could not login to OCI registry "public.ecr.aws": login attempt to https://public.ecr.aws/v2/ failed with status: 403 Forbidden
│
│ with helm_release.karpenter,
│ on eks.tf line 136, in resource "helm_release" "karpenter":
│ 136: resource "helm_release" "karpenter" {
│
NOTE: In addition to Terraform debugging, please set HELM_DEBUG=1 to enable debugging info from helm.
Can't run debug now, have removed the code from terraform and plan on using the helm --install for karpenter on bash prompt.
Panic Output
Steps to Reproduce
terraform plan and apply both produce the error. impossible to proceed, tries all tricks available on the net
In the end, removed the resource from state file and then commented out from the .tf file.
Expected Behavior
See the same as bug #846
Actual Behavior
Login to oci://public.ecr.aws should refresh when a token has expired. Neither deleting ~/.config/helm nor removing the entire .terraform folder helps. Helm login from CLI(bash) works but as a terraform resource 'helm_release' always fails to login to oci://public.ecr.aws
Important Factoids
References
Community Note
The text was updated successfully, but these errors were encountered: