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

fix: check node state before udating #6

Merged
merged 3 commits into from
Sep 6, 2023
Merged

Conversation

minhthong582000
Copy link
Contributor

@minhthong582000 minhthong582000 commented Aug 28, 2023

Restructured the code into separate packages to enhance maintainability.

The primary enhancement is adding a nodegroup state check before performing updates. The updated logic will be:

  • If the state is ACTIVE, initiate the update process and await its completion.

  • Then, the "eks-auto-updater" job will eventually be terminated as pods transition to a new nodegroup in response to the updates.

  • When it came back, verify the node state, which should now UPDATING. Just wait for the update to finish.

Signed-off-by: minhthong582000 <[email protected]>
@minhthong582000 minhthong582000 force-pushed the refactor/eks-update branch 7 times, most recently from cdfbbcf to bd81ab9 Compare August 31, 2023 06:02
@minhthong582000 minhthong582000 marked this pull request as ready for review August 31, 2023 10:27
pkg/aws/client.go Outdated Show resolved Hide resolved
@jasonmcintosh
Copy link
Contributor

Also there's a bit TOO Much refactoring all in one. SMALL prs with SMALLER changes is better.

@christosarvanitis christosarvanitis self-requested a review September 4, 2023 10:00
Copy link
Member

@christosarvanitis christosarvanitis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except the comment from Jason about the session duration 🚀

@minhthong582000 minhthong582000 merged commit 03ee704 into main Sep 6, 2023
@minhthong582000 minhthong582000 deleted the refactor/eks-update branch September 6, 2023 08:38
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.

3 participants