-
Notifications
You must be signed in to change notification settings - Fork 40.7k
Remove misleading comment from NodeTaint TimeAdded field #131644
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
Conversation
Welcome @Uladzislau97! |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @Uladzislau97. 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-sigs/prow repository. |
/cc @x13n |
/uncc @dchen1107 |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
/ok-to-test Does this comment mean this field is populated server side for |
Reviewed the taint code and didn't find explicit default population or validation for the |
/lgtm |
LGTM label has been added. Git tree hash: 129bc6794562b384e035d17f93cefc6577f257d1
|
/cc @thockin |
@@ -3423,7 +3423,6 @@ type Taint struct { | ||
// Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | ||
Effect TaintEffect | ||
// TimeAdded represents the time at which the taint was added. | ||
// It is only written for NoExecute taints. |
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.
This same comment exists in staging/src/k8s.io/api/core/v1/types.go which is what the docs are driven off. Can you please update that, too, and then run make update
to regenerate everything needed?
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.
Done, but it updated a lot of stuff:)
1a87bcd
to
2c0dd21
Compare
2c0dd21
to
c4d6fcb
Compare
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.
Thanks!
/lgtm
/approve
LGTM label has been added. Git tree hash: 73b40190d9162da870f9ddb4d049d39a0bd410b3
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: thockin, Uladzislau97 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 |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
The PR delete comment
// It is only written for NoExecute taints
because:TimeAdded
field is set for taints with theNoSchedule
effect within theNodeLifecycleController
(see here), particularly when theSwapNodeControllerTaint
method (see here) is called.TimeAdded
field to aNoSchedule
taint, making me question if using it with an effect other thanNoExecute
would introduce issues.TimeAdded
field is restricted toNoExecute
taints.Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: