Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

migrate-to-pod-identity incorrectly updates EKS addons to use pod identity #7752

Open
cPu1 opened this issue May 9, 2024 · 0 comments
Open

Comments

@cPu1
Copy link
Collaborator

cPu1 commented May 9, 2024

When running eksctl utils migrate-to-pod-identity --remove-oidc-provider-trust-relationship --approve on a cluster where a managed EKS addon like vpc-cni is using IRSA, it incorrectly migrates the addon to use pod identity by removing the OIDC provider trust relationship from the service account role and removing the IRSA annotation, potentially breaking the addon for older versions that do not support pod identity. EKS addons do not officially support pod identity (although newer versions work), so they should be skipped during migration.

A sample config to reproduce this issue:

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: cluster
  region: us-west-2

iam:
  withOIDC: true

addons:
  - name: vpc-cni
    attachPolicyARNs:
    - arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant