-
Notifications
You must be signed in to change notification settings - Fork 634
✨ Add node auto repair configuration for EKS managed node groups #5604
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
base: main
Are you sure you want to change the base?
Conversation
Hi @afarbos. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
c29aa17
to
308295b
Compare
} | ||
|
||
// NodeRepairConfig defines the node auto repair configuration for managed node groups. | ||
type NodeRepairConfig struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a chance to extend this struct (adding more fields) ? if not, then adding autoNodeRepair boolean field under spec is better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is are more fields, see https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/[email protected]/types#NodeRepairConfig / https://docs.aws.amazon.com/eks/latest/APIReference/API_NodeRepairConfig.html Do you want me to add support for all?
Note: those did not exist when this PR was created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine as a struct, given that more options may be supported in the future. Is enabled
enough as default to get the feature to work nicely? If yes, I think we can live with only the enabled
field for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, those field did not exist in 1.73.0 version/until recently. This is why i did not include them from the start see https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/[email protected]/types#NodeRepairConfig
Also the API linked above does not mention any being required, see the Required: No
@afarbos rebase is required for the PR |
308295b
to
28ad4be
Compare
rebased |
} | ||
|
||
// NodeRepairConfig defines the node auto repair configuration for managed node groups. | ||
type NodeRepairConfig struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine as a struct, given that more options may be supported in the future. Is enabled
enough as default to get the feature to work nicely? If yes, I think we can live with only the enabled
field for now.
28ad4be
to
2e6af5e
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I also tried to add a e2e test here after I saw them. I am not sure how to run them here. |
/ok-to-test |
LGTM label has been added. Git tree hash: e9654264f42f3d4950b4533ce50f01074db3c139
|
2e6af5e
to
e1c3fd9
Compare
/retest |
e1c3fd9
to
0d3c5de
Compare
/retest |
1 similar comment
/retest |
0d3c5de
to
f2c01bf
Compare
/lgtm On to @kubernetes-sigs/cluster-api-provider-aws-maintainers for a second pair of eyes and approval |
LGTM label has been added. Git tree hash: e5dbb561cff2dffb3e1dafcb598d58a9fe81d02e
|
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds support for node auto repair configuration in EKS managed node groups. Node auto repair is a feature that allows EKS to automatically repair unhealthy nodes by replacing them, helping maintain cluster health and availability.
https://aws.amazon.com/about-aws/whats-new/2024/12/node-health-monitoring-auto-repair-amazon-eks/
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
NodeRepairConfig
field toAWSManagedMachinePoolSpec
with anenabled
boolean fieldNodegroupRepairConfigToSDK
andNodegroupRepairConfigFromSDK
functionsChecklist:
Release note: