-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 bugfix function aggregateFromMachinesToKCP #8132
Conversation
|
Welcome @wm775825! |
Hi @wm775825. 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. |
/test pull-cluster-api-build-main |
@wm775825: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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 |
/test pull-cluster-api-build-main |
/test all |
/retest |
/lint |
/help |
how to invoke lint? anyone can help? |
/ok-to-test (Not sure why lint isn't running) 🤔 |
In the warning it says: "This workflow requires approval from a maintainer." So I assume I'm not allowed to trigger it for none Kubernetes org members. |
It cannot be done via ok-to-test (I think there is a long-standing issue for that in test-infra) Someone with at least write access to the repo has to push a button |
/cc |
@wm775825: GitHub didn't allow me to request PR reviews from the following users: wm775825. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
/auto-cc |
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.
The fix looks good, thanks for finding this!
Could we add a unit test to make sure this doesn't break again?
/auto-cc |
sorry, it seems that i removed some reviewers by mistake? |
/lgtm |
LGTM label has been added. Git tree hash: 0f1f7187a178a18f32097223141cad6de83ee811
|
/lgtm |
@jackfrancis I'll try to take a look soon'ish. If it's a bugfix and pretty safe would be good to cherry-pick in both |
Thank you very much!! /lgtm |
/cherry-pick release-1.3 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer 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 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.3 in a new PR and assign it to you. In response to this:
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. |
/cherry-pick release-1.2 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.2 in a new PR and assign it to you. In response to this:
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. |
@sbueringer: #8132 failed to apply on top of branch "release-1.3":
In response to this:
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. |
@sbueringer: #8132 failed to apply on top of branch "release-1.2":
In response to this:
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. |
@wm775825 Do you have time to open (manual) cherry-pick PRs for release-1.3 and release-1.2? |
it seems there has been two manual cherrypicks merged. |
@wm775825 I went ahead and took the liberty, thanks again for doing all the real work here :) 💪 |
What this PR does / why we need it:
When aggregating from machine conditions to kcp condition, the priority is:
However, when dealing with "false conditions with info conditions", there is a bug in source codes.
In Line 562, having checked warning reasons, we should check info reasons next. That is, to check "kcpMachinesWithInfo" rather than "kcpMachinesWithWarnings". However, there is a duplicate "kcpMachinesWithWarnings" in line 556 and line 662.
Maybe this is not a common scene, so it didn't lead to serious problems and was neglected.
As a beginner of cluster-api, i found it when i read source codes, so i fix it.
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 #
no issues.