Skip to content

Commit

Permalink
Add handling for upgrade of serviceaccounts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Oct 11, 2023
1 parent 76bcd79 commit 7ba1c55
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/actions/e2e/create-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ runs:
cmd="create"
eksctl get cluster --name ${{ inputs.cluster_name }} && cmd="upgrade"
eksctl ${cmd} cluster -f - <<EOF
cat << EOF >> config.yaml
---
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
Expand Down Expand Up @@ -146,6 +146,14 @@ runs:
wellKnownPolicies:
ebsCSIController: true
EOF
eksctl ${cmd} cluster -f config.yaml
# We need to call these update iamserviceaccount commands again since the "eksctl upgrade cluster" action
# doesn't handle updates to IAM serviceaccounts correctly when the roles assigned to them change
eksctl update iamserviceaccount -f config.yaml
- name: tag oidc provider of the cluster
if: always()
shell: bash
Expand Down

0 comments on commit 7ba1c55

Please sign in to comment.