Skip to content

[Bug] 'eksctl create podidentityassociation' does not work in the case of EKS auto-mode #8346

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

Open
TarmoKople opened this issue Apr 4, 2025 · 2 comments · May be fixed by #8358
Open

[Bug] 'eksctl create podidentityassociation' does not work in the case of EKS auto-mode #8346

TarmoKople opened this issue Apr 4, 2025 · 2 comments · May be fixed by #8358
Labels

Comments

@TarmoKople
Copy link

eksctl does not check whether EKS is using auto-mode or not. In EKS auto-mode, there is no need to check whether the eks-pod-identity-agent is installed or not, because eks-pod-identity-agent is part of the EKS auto-mode.

What were you trying to accomplish?

I tried to create a new podidentityassociation.

eksctl create podidentityassociation  ..... 

What happened?

Error: the "eks-pod-identity-agent" addon must be installed to create pod identity associations; please enable it using `eksctl ....

How to reproduce it?

Run again

eksctl create podidentityassociation  ..... 

Logs

Anything else we need to know?

The IsPodIdentityAgentInstalled function in the file pkg/actions/podidentityassociation/migrator.go does not check whether EKS is using auto-mode or not.

Created pull request #8345

Versions

$ eksctl info

eksctl version: 0.207.0
kubectl version: v1.29.2
OS: linux
Copy link
Contributor

github-actions bot commented Apr 4, 2025

Hello TarmoKople 👋 Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-5 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

@TarmoKople TarmoKople changed the title [Bug] eksctl create podidentityassociation does not work in the case of EKS auto-mode [Bug] 'eksctl create podidentityassociation' does not work in the case of EKS auto-mode Apr 4, 2025
@dheeraj-coding
Copy link

So for eks auto-mode a new cluster can be created with auto-mode or it can be enabled for an existing cluster. as far as I understand the computeConfig flag here tells whether a cluster has auto-mode enabled or not. if we do not have to rely on the eksctl ClusterConfig then we can do a describe-cluster to get the flag to decide if it is in auto-mode or not. Otherwise if we can be sure that ClusterConfig will always have updated information then we do not need to make that describe-cluster call to determine if auto-mode is enabled or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants