Skip to content

HypervisorController: Do not overwrite evicting#240

Open
fwiesel wants to merge 1 commit intomainfrom
dont_overwrite_ready
Open

HypervisorController: Do not overwrite evicting#240
fwiesel wants to merge 1 commit intomainfrom
dont_overwrite_ready

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Feb 17, 2026

Both the eviction controller as well as the hypervisor controller are writing the summary condition, leading to the condition flipping, depending on who has written last.
Let's give the eviction controller priority as there are more states (Evicting, Evicted) instead of just ScaleDown.

Both the eviction controller as well as the hypervisor controller
are writing the summary condition, leading to the condition flipping,
depending on who has written last.
Let's give the eviction controller priority as there are more states
(Evicting, Evicted) instead of just ScaleDown.
@github-actions
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller 56.08% (+0.05%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/hypervisor_controller.go 72.06% (+0.42%) 68 (+1) 49 (+1) 19 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/hypervisor_controller_test.go

@fwiesel fwiesel requested a review from notandy February 17, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant