Skip to content
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

bug: Could not download karpenter-crd chart from Public AWS ECR #10

Open
nirmalpathak opened this issue Mar 21, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@nirmalpathak
Copy link

Summary

When I apply the terraform module, it fails while downloading the karpenter-crd chart from the Public ECR registry.

The following is my TF code.

$  cat karpenter.tf 
module "eks-karpenter" {
  source  = "lablabs/eks-karpenter/aws"
  version = "1.0.2"

  # insert the 3 required variables here
  cluster_name                     = var.eks_cluster_name
  cluster_identity_oidc_issuer     = var.eks_cluster_identity_oidc_issuer
  cluster_identity_oidc_issuer_arn = var.eks_cluster_identity_oidc_issuer_arn

  enable_0_29_x_support = false
  crds_helm_chart_version = var.helm_chart_version
}

Issue Type

Bug Report

Terraform Version

$  terraform --version
Terraform v1.7.5
on linux_amd64
+ provider registry.terraform.io/cloudposse/utils v1.18.0
+ provider registry.terraform.io/hashicorp/aws v5.41.0
+ provider registry.terraform.io/hashicorp/helm v2.12.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.27.0
+ provider registry.terraform.io/hashicorp/time v0.11.1

Steps to Reproduce

terraform apply

Expected Results

The karpenter-crd chart should be successfully pulled and teraaform apply should successfully compelte.

Actual Results


│ Error: could not download chart: public.ecr.aws/karpenter-crd:v0.33.1: not found

│   with module.eks-karpenter.helm_release.crds[0],
│   on .terraform/modules/eks-karpenter/helm.tf line 5, in resource "helm_release" "crds":
│    5: resource "helm_release" "crds" {

@nirmalpathak nirmalpathak added the bug Something isn't working label Mar 21, 2024
@liadlevy-pando
Copy link

liadlevy-pando commented May 28, 2024

any updates about it?

A workaround is to call the repo karpenter/karpenter.

module "eks-karpenter" {
  source  = "lablabs/eks-karpenter/aws"
  version = "1.0.2"

  # insert the 3 required variables here
  cluster_name                     = var.eks_cluster_name
  cluster_identity_oidc_issuer     = var.eks_cluster_identity_oidc_issuer
  cluster_identity_oidc_issuer_arn = var.eks_cluster_identity_oidc_issuer_arn

  enable_0_29_x_support = false
  crds_helm_chart_version = var.helm_chart_version
  crds_helm_chart_name  = "karpenter/karpenter"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants