Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: chart snapshot for webhook test v0.37.x #7262

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading