Skip to content

Commit

Permalink
fix: chart snapshot for webhook test v0.37.x (#7262)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalo authored Oct 22, 2024
1 parent 24b6bec commit 94f277a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/hack/e2e_scripts/install_karpenter.sh
Original file line number Diff line number Diff line change
@@ -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} \
Expand Down Expand Up @@ -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

0 comments on commit 94f277a

Please sign in to comment.