Skip to content

Traits: Only reconcile after onboarding and before decomissioning - #191

Merged
fwiesel merged 1 commit into
mainfrom
traits_reconcile_lifetime
Dec 4, 2025
Merged

Traits: Only reconcile after onboarding and before decomissioning#191
fwiesel merged 1 commit into
mainfrom
traits_reconcile_lifetime

Conversation

@fwiesel

@fwiesel fwiesel commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

As with 6bb6c6 for the aggregates:

Traits set by the operator may conflict with the testing, and decomissioning may make the resource-provider disappear. 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 December 3, 2025 13:35
@fwiesel
fwiesel force-pushed the traits_reconcile_lifetime branch from bcacbc7 to 35f8cad Compare December 3, 2025 14:04
@github-actions

github-actions Bot commented Dec 3, 2025

Copy link
Copy Markdown

Merging this branch will decrease overall coverage

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

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/traits_controller.go 58.18% (+1.58%) 55 (+2) 32 (+2) 23 👍

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

As with 6bb6c6 for the aggregates:

Traits set by the operator may conflict with the testing,
and decomissioning may make the resource-provider disappear.
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 merged commit a81095a into main Dec 4, 2025
7 checks passed
@fwiesel
fwiesel deleted the traits_reconcile_lifetime branch December 4, 2025 08:45
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