fix: pass NodeList to processAllNodesForRule in tests#256
Conversation
processAllNodesForRule now takes a *corev1.NodeList, but two tests still called it with the old two-argument signature, breaking the build on main. Pass a NodeList through, matching the production caller. Signed-off-by: Sahitya Chandra <sahityajb@gmail.com>
✅ Deploy Preview for node-readiness-controller canceled.
|
|
Hi @sahitya-chandra. 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 Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test |
|
Thanks @sahitya-chandra ! /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ajaysundark, sahitya-chandra The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
mainis currently broken. Lint, Tests and E2E all fail atgo vet:#226 changed
processAllNodesForRuleto take a*corev1.NodeList, but the two new tests added in #216 still call it with the old two-argument signature. Both PRs were green on their own branches; the test file only stopped compiling once #216 landed on top of #226 onmain.Fix wraps the test node in a
*corev1.NodeListand passes it through, same asreconcileNormaldoes. Filtering still happens inside the function, so behaviour is unchanged.Related Issue
None
Type of Change
/kind bug
/kind failing-test
Testing
make lintcleanmake testpassesChecklist
make testpassesmake lintpassesDoes this PR introduce a user-facing change?