-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Remove comparison of kubelet_shutdown_grace_period and kubelet_shutdown_grace_period_critical_pods #7993
Remove comparison of kubelet_shutdown_grace_period and kubelet_shutdown_grace_period_critical_pods #7993
Conversation
Hi @cristicalin. 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/test-infra repository. |
a45dc0f
to
8b35bfd
Compare
Those fields are golang durations, so we need to compare 2m and 30s. I would just remove the check. |
8b35bfd
to
fa18f6c
Compare
The check seems useful to me to avoid deployers shooting themselves in the foot. I added some more details to the description in the sample so its clear kubespray does extra validation and can get confused if the unit of measure is different between the two. |
fa18f6c
to
53a7479
Compare
and kubelet_shutdown_grace_period_critical_pods as ansible cannot do sane time interval calculations
53a7479
to
22badad
Compare
Sadly, you cannot massage ansible into doing sane calculations with time intervals and doing more complex data transformations would add too much code. In the end @champtar 's solution is the sanest. |
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.
Agreed, seems like complicated, cluster admin should be careful
/ok-to-test
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cristicalin, floryut 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 |
/lgtm |
and kubelet_shutdown_grace_period_critical_pods as ansible cannot do sane time interval calculations
and kubelet_shutdown_grace_period_critical_pods as ansible cannot do sane time interval calculations
and kubelet_shutdown_grace_period_critical_pods as ansible cannot do sane time interval calculations
…
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR removes the comparison of
kubelet_shutdown_grace_period
tokubelet_shutdown_grace_period_critical_pods
because ansible cannot do time interval comparisons sanely so we defer to the better judgement of the deployer.Which issue(s) this PR fixes:
Fixes #7991
Special notes for your reviewer:
Does this PR introduce a user-facing change?: