Repository navigation
pkg/controller/node: fix controller to handle multiple roles - #828
Conversation
6bc97bd to
3cb6a49
Compare
If the node belongs to more than 1 pool, run it through the same logic we use to add it to the queue for a specific pool. This avoids including nodes in multiple pools for status reporting. Signed-off-by: Antonio Murdaca <[email protected]>
3cb6a49 to
eed287c
Compare
|
This is working so nice, I encourage everyone to test this out using #429 (comment) (so we can keep testing it as well). Worked fine for me to create an MC just for |
|
/retest |
1 similar comment
|
/retest |
|
Sorry about the delay, |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, runcom 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 |
|
Thanks Colin, gonna hold it for a moment once I run an upgrade with the infra pool to check if everything is ok also /hold |
|
/hold cancel upgrade went through just fine with an additional infra pool |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
pkg/controller/node: fix controller to handle multiple roles
If the node belongs to more than 1 pool, run it through the same logic we use
to add it to the queue for a specific pool. This avoids including nodes in
multiple pools for status reporting and multiple desiredConfig swaps.
see #429 (comment) for testing. W/o this patch, the worker pool will show Updating with 6 nodes cause 3 nodes are both worker and infra. If you then add an MC for worker only, nodes go through reconciliation twice (which is super bad cause of reboot).
Close #429
Close #294
Signed-off-by: Antonio Murdaca [email protected]