Skip to content

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Dec 18, 2025

No description provided.

@notandy
Copy link
Contributor

notandy commented Dec 18, 2025

We had the discussion about finalizers on the hypervisor object, I won't waste time about it again, sry.

@notandy notandy closed this Dec 18, 2025
@notandy notandy reopened this Dec 18, 2025
The tests before where partly relying one a global context, which means
the cancelation from ginkgo wasn't really passed down. The leaf
functions can take a context.Context or SpecContext argument. The latter
is already imported, so lets go with that one.
@fwiesel fwiesel force-pushed the offboarding-hypervisor branch from dd8e041 to f39b475 Compare December 19, 2025 11:26
@fwiesel fwiesel force-pushed the offboarding-hypervisor branch from f39b475 to 9bb91b2 Compare December 19, 2025 13:04
This also needs some manual migration work: The finalizer
in the node needs to get manually removed, and the name
change of the controller-name requires a reset of the
field owners.
@github-actions
Copy link

Merging this branch will increase overall coverage

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

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/decomission_controller.go 58.11% (+26.94%) 74 (-3) 43 (+19) 31 (-22) 🌟

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/aggregates_controller_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/decomission_controller_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/eviction_controller_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/gardener_node_lifecycle_controller_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/hypervisor_maintenance_controller_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/node_certificate_controller_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/node_eviction_label_controller_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/onboarding_controller_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/suite_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/traits_controller_test.go

@fwiesel
Copy link
Contributor Author

fwiesel commented Dec 19, 2025

I think, I know how do it without finalizers...

@fwiesel fwiesel closed this Dec 19, 2025
@fwiesel fwiesel deleted the offboarding-hypervisor branch December 19, 2025 13:32
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