From 94f277a4dca2fab2874157b8bfe1e924a73034b3 Mon Sep 17 00:00:00 2001 From: Reed Schalo Date: Tue, 22 Oct 2024 15:18:44 -0700 Subject: [PATCH] fix: chart snapshot for webhook test v0.37.x (#7262) --- test/hack/e2e_scripts/install_karpenter.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/hack/e2e_scripts/install_karpenter.sh b/test/hack/e2e_scripts/install_karpenter.sh index ac55078469f8..7bdfce86a6c8 100755 --- a/test/hack/e2e_scripts/install_karpenter.sh +++ b/test/hack/e2e_scripts/install_karpenter.sh @@ -1,8 +1,10 @@ aws eks update-kubeconfig --name "$CLUSTER_NAME" # First, conditionally install the webhook stanza and CRDs +SKIP_CRDS=false if (( "$WEBHOOKS_ENABLED" == false )); then -helm upgrade --install karpenter-crd oci://public.ecr.aws/karpenter/karpenter-crd \ +SKIP_CRDS=true +helm upgrade --install karpenter-crd oci://$ECR_ACCOUNT_ID.dkr.ecr.$ECR_REGION.amazonaws.com/karpenter/snapshot/karpenter-crd \ --namespace kube-system \ --version "0-$(git rev-parse HEAD)" \ --set webhook.enabled=${WEBHOOKS_ENABLED} \ @@ -42,4 +44,5 @@ helm upgrade --install karpenter "${CHART}" \ --set "serviceMonitor.endpointConfig.relabelings[2].replacement=$(git describe --abbrev=0 --tags)" \ --set "serviceMonitor.endpointConfig.relabelings[3].targetLabel=commitsAfterTag" \ --set "serviceMonitor.endpointConfig.relabelings[3].replacement=\"$(git describe --tags | cut -d '-' -f 2)\"" \ + --skip-crds $SKIP_CRDS \ --wait