Skip to content

[traits-controller] fix updating the traits status field unconditionally - #174

Merged
notandy merged 1 commit into
mainfrom
fix-traits-update
Nov 5, 2025
Merged

[traits-controller] fix updating the traits status field unconditionally#174
notandy merged 1 commit into
mainfrom
fix-traits-update

Conversation

@notandy

@notandy notandy commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

before, traits wouldn't be updated if the condition has been the same
(due to the "changed" check of setStatusCondition)
also reworkes the getTraitCondition to make the code better readable

before, traits wouldn't be updated if the condition has been the same
(due to the "changed" check of setStatusCondition)
also reworkes the getTraitCondition to make the code better readable
@github-actions

github-actions Bot commented Nov 5, 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.40% (-0.11%) 👎

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 56.60% (-3.40%) 53 (+3) 30 23 (+3) 👎

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.

@notandy
notandy merged commit 4448ced into main Nov 5, 2025
7 checks passed
@notandy
notandy deleted the fix-traits-update branch November 5, 2025 14:43
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