Skip to content

Make the hypervisor spec immutable on termination#249

Merged
fwiesel merged 1 commit intomainfrom
immutable-termination
Feb 27, 2026
Merged

Make the hypervisor spec immutable on termination#249
fwiesel merged 1 commit intomainfrom
immutable-termination

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Feb 27, 2026

It is hard to undo the termination in certain situations and the field should usually be set by an automation, so uncommiting to terminate a node is a rather less common scenario. So let's prohibit it for now.

HA events can always happen, so we still need to be able to switch to that, and then anything goes.

It is hard to undo the termination in certain situations and the field
should usually be set by an automation, so uncommiting to terminate a
node is a rather less common scenario. So let's prohibit it for now.

HA events can always happen, so we still need to be able to switch to
that, and then anything goes.
@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% (ø)

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

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/api/v1/hypervisor_validation_test.go
  • github.com/cobaltcore-dev/openstack-hypervisor-operator/api/v1/suite_test.go

@fwiesel fwiesel merged commit 830f623 into main Feb 27, 2026
6 checks passed
@fwiesel fwiesel deleted the immutable-termination branch February 27, 2026 13:51
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