Skip to content

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Dec 16, 2025

  • Refactored the test a bit
  • Changed the name of the eviction to just the name of the hypervisor to match the other controllers
  • Use the hypervisor as owner of the eviction

@fwiesel fwiesel requested a review from notandy December 16, 2025 16:45
Use DeferCleanup instead of AfterEach for cleanup
Pass local contex of the function instead of a global one.
This how it is done in all the other controllers / agents, so normalize
it that way.
Let's get the node as much as possible out of the way.
@github-actions
Copy link

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller 50.09% (-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/node_eviction_label_controller.go 39.73% (-0.81%) 73 (-1) 29 (-1) 44 👎

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/node_eviction_label_controller_test.go

@notandy notandy merged commit b4f14a7 into main Dec 16, 2025
6 checks passed
@notandy notandy deleted the node-label-cleanup branch December 16, 2025 20:51
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.

3 participants