Skip to content

Conversation

@PhilippMatthes
Copy link
Member

@PhilippMatthes PhilippMatthes commented Dec 23, 2025

Cortex gets a filter that filters possible hosts based on their capabilities. This is done by matching the flavor extra_specs to the hypervisor CRD. However, at the moment we lack some fields and some others (like cpuArch) need renaming. This contribution fixes that.

TODOs

  • Check our production flavors and spec out all the fields we will need for capability matching
  • Implement the logic that populates these fields

@github-actions
Copy link

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1 0.00% (ø)
github.com/cobaltcore-dev/openstack-hypervisor-operator/applyconfigurations/api/v1 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1/hypervisor_types.go 0.00% (ø) 0 0 0
github.com/cobaltcore-dev/openstack-hypervisor-operator/applyconfigurations/api/v1/capabilitiesstatus.go 0.00% (ø) 0 0 0

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.

@PhilippMatthes PhilippMatthes marked this pull request as draft December 23, 2025 12:48
@PhilippMatthes PhilippMatthes changed the title [cortex] Rename cpuArch to arch in hv crd [cortex] Change hypervisor crd status to support capability filtering Dec 23, 2025
@PhilippMatthes PhilippMatthes changed the title [cortex] Change hypervisor crd status to support capability filtering [cortex] Extend hypervisor CRD capabilities substruct Dec 23, 2025
@PhilippMatthes
Copy link
Member Author

Will reopen under another branch

@PhilippMatthes PhilippMatthes deleted the rename-cpuarch-to-arch branch December 23, 2025 13:00
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