Skip to content

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Nov 20, 2025

Onboarding needs to set its own aggregates for testing purposes, and decomissining needs to remove the aggregates.
To avoid these controllers fighting, let's limit this controller to the actual active lifetime of the hypervisor.

Unfortunately, that means we have to reconcile on every status update.

@fwiesel fwiesel requested a review from notandy November 20, 2025 10:55
Onboarding needs to set its own aggregates for testing purposes,
and decomissining needs to remove the aggregates.
To avoid these controllers fighting, let's limit this controller
to the actual active lifetime of the hypervisor.

Unfortunately, that means we have to reconcile on every status update.
@github-actions
Copy link

Merging this branch will decrease overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller 36.74% (-2.97%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/aggregates_controller.go 61.54% (+0.86%) 91 (+2) 56 (+2) 35 👍

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

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.

2 participants