Skip to content

Addon update: fix resolving 'latest' version (#7841)#8781

Open
abhishek-dalbanjan wants to merge 1 commit into
eksctl-io:mainfrom
abhishek-dalbanjan:fix-addon-latest-version
Open

Addon update: fix resolving 'latest' version (#7841)#8781
abhishek-dalbanjan wants to merge 1 commit into
eksctl-io:mainfrom
abhishek-dalbanjan:fix-addon-latest-version

Conversation

@abhishek-dalbanjan

@abhishek-dalbanjan abhishek-dalbanjan commented Jul 1, 2026

Copy link
Copy Markdown

Description

Fixes #7841

When updating an addon with version: latest, eksctl correctly resolves the latest semantic version to send to the AWS API but fails to update the internal addon struct. As a result, subsequent calls, like getRecommendedPoliciesForPodID, attempt to use "latest" instead of the resolved version, causing a failure.

This PR updates the internal addon.Version inside the else block so that the resolved version is used consistently throughout the eksctl update addon execution. It also adds a unit test to verify this behavior.

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

When updating an addon with 'version: latest', eksctl successfully resolved the latest version for the AWS API payload, but forgot to update the internal addon struct. This caused subsequent policy lookups to fail because they still used 'latest' instead of the resolved version. This commit updates the internal struct with the resolved version to fix the error.

Fixes eksctl-io#7841

Signed-off-by: Abhishek Dalbanjan <abhishekdalbanjan1@gmail.com>
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Hello Abhidalbanjan 👋 Thank you for opening a Pull Request in eksctl project. The team will review the Pull Request and aim to respond within 1-10 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eksctl update addon with version: latest and useDefaultPodIdentityAssociations fails

1 participant