Skip to content

Commit

Permalink
test: fix failure happening due to webhook being disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jigisha620 committed Jul 24, 2024
1 parent 5905779 commit 21d6c98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion .github/actions/e2e/install-karpenter/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ runs:
ECR_REGION: ${{ inputs.ecr_region }}
ACCOUNT_ID: ${{ inputs.account_id }}
CLUSTER_NAME: ${{ inputs.cluster_name }}
K8S_VERSION: ${{ inputs.k8s_version }}
PRIVATE_CLUSTER: ${{ inputs.private_cluster }}
run: |
./test/hack/e2e_scripts/install_karpenter.sh
Expand Down
7 changes: 1 addition & 6 deletions test/hack/e2e_scripts/install_karpenter.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
aws eks update-kubeconfig --name "$CLUSTER_NAME"

# Parse minor version to determine whether to enable the webhooks
K8S_VERSION_MINOR="${K8S_VERSION#*.}"
WEBHOOK_ENABLED=false
if (( K8S_VERSION_MINOR < 25 )); then
WEBHOOK_ENABLED=true
fi
WEBHOOK_ENABLED=true

CHART="oci://$ECR_ACCOUNT_ID.dkr.ecr.$ECR_REGION.amazonaws.com/karpenter/snapshot/karpenter"
ADDITIONAL_FLAGS=""
Expand Down

0 comments on commit 21d6c98

Please sign in to comment.