Skip to content

Commit

Permalink
Merge pull request #233 from engedaam/use-pod-identity-1.23
Browse files Browse the repository at this point in the history
Use e2e pod identity
  • Loading branch information
engedaam authored Dec 11, 2023
2 parents 889aa85 + 813de0d commit af53ac4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/e2e/setup-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ runs:
cmd="create"
eksctl get cluster --name ${{ inputs.cluster_name }} && cmd="upgrade"
karpenterIAM=EOF
podIdentityAssociations:
- namespace: kube-system
serviceAccountName: karpenter
roleName: karpenter-irsa-${{ inputs.cluster_name }}
permissionsBoundaryARN: "arn:aws:iam::${{ inputs.account_id }}:policy/GithubActionsPermissionsBoundary"
permissionPolicyARNs:
- "arn:aws:iam::${{ inputs.account_id }}:policy/KarpenterControllerPolicy-${{ inputs.cluster_name }}"
EOF
echo $karpenterIAM
cat << EOF >> clusterconfig.yaml
---
apiVersion: eksctl.io/v1alpha5
Expand Down

0 comments on commit af53ac4

Please sign in to comment.