-
Notifications
You must be signed in to change notification settings - Fork 38.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
change bandwidth units from Kb to b #75442
change bandwidth units from Kb to b #75442
Conversation
Signed-off-by: Bruce Ma <brucema19901024@gmail.com>
Hi @mars1024. 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 |
To be clear, it was the 'bandwidth' CNI plugin docs that were wrong. The implementation was always in bits-per-second. @mars1024 can you add a release note as described in the first comment? that will remove the release note required label. |
Sure, I will also update the pr comment. |
/assign @dcbw |
@dcbw PTAL, thx ~ |
/assign @freehan |
Is there actually action-required? We should already be converting the annotation quantity into nominal units. This juts fixes a bug where we thought CNI wanted Kb but really it wanted b. As such, I do not think the release-note is right. Otherwise it is a breaking change, and we have to have a bigger conversation. Confirm? |
Concretely, I think "NA" is a sufficient release note. |
Is there any potential this will break users that depend on the wrong behavior? I guess it will just looses the bandwidth limit, right? |
Yes, it will just looses the bandwidth of newly created pods. |
OK, just as @freehan said above, if we do not think loosing is a breaking point, we need to set release note to NA. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mars1024, thockin 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
CNI bandwidth plugin is designed to use bits-per-second and bits as the units of bandwidth rates and brust, and bandwidth plugin doc has changed its bandwidth related units from Kb to b in containernetworking/plugins@220499d, and CNI CONVENTIONS has also use b as its unit in containernetworking/cni@d2be2fa. So we have to change bandwidth unit from Kb to b in kubelet/cni.