Skip to content

Commit

Permalink
Add service account for 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
engedaam committed Jan 9, 2024
1 parent c2da71f commit 9e4e37f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/e2e/install-karpenter/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,15 @@ runs:
WEBHOOK_ENABLED=true
fi
if [[ "$K8S_VERSION" == '1.23' ]]; then
KARPENTER_IAM_ROLE_ARN ?= arn:aws:iam::$AWS_ACCOUNT_ID:role/$CLUSTER_NAME-karpenter
SERVICEACCOUNT ?= --set serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn=$KARPENTER_IAM_ROLE_ARN
fi
helm upgrade --install karpenter "oci://$ECR_ACCOUNT_ID.dkr.ecr.$ECR_REGION.amazonaws.com/karpenter/snapshot/karpenter" \
-n kube-system \
--version "v0-$(git rev-parse HEAD)" \
$SERVICEACCOUNT \
--set webhook.enabled=${WEBHOOK_ENABLED} \
--set settings.clusterName="$CLUSTER_NAME" \
--set settings.interruptionQueue="$CLUSTER_NAME" \
Expand Down

0 comments on commit 9e4e37f

Please sign in to comment.