-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Bump NTH 1.16 and add excludeFromLoadBalancers option #13467
Conversation
DingGGu
commented
Apr 7, 2022
- Bump NTH 1.16 and add excludeFromLoadBalancers option Bump AWS Node termination handler to 1.16 to support excludeLoadBalancers #13465
|
Welcome @DingGGu! |
Hi @DingGGu. Thanks for your PR. I'm waiting for a kubernetes 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/test-infra repository. |
/ok-to-test |
/cc @olemarkus |
@@ -183,6 +197,8 @@ spec: | |||
value: "false" | |||
- name: ENABLE_SQS_TERMINATION_DRAINING | |||
value: "true" | |||
- name: EXCLUDE_FROM_LOAD_BALANCERS | |||
value: "{{ .ExcludeFromLoadBalancers }}" |
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.
You need to use WithDefaultBool
here since ExcludeFromLoadBalancers
is a pointer and go templates will evaluate pointers as non-nil or not, also for boolean pointers.
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.
Okay, I will try to use WithDefaultBool for all nth manifest.
@@ -51,6 +51,9 @@ func (b *NodeTerminationHandlerOptionsBuilder) BuildOptions(o interface{}) error | |||
if nth.EnableRebalanceDraining == nil { | |||
nth.EnableRebalanceDraining = fi.Bool(false) | |||
} | |||
if nth.ExcludeFromLoadBalancers == nil { | |||
nth.ExcludeFromLoadBalancers = fi.Bool(false) |
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.
Any downsides to enabling this by default?
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.
NTH defaults to false, but in kOps, we can set the default value to true because there is nothing bad effect with it.
/retest |
@DingGGu You may have to run |
735a68f
to
6c0d579
Compare
maybe need /ok-to-test for this PR |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: olemarkus The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |