Skip to content

Conversation

@fwiesel
Copy link
Contributor

@fwiesel fwiesel commented Nov 19, 2025

The eviction will now be triggered by the maintenance-operator, so drop setting the label.

Watch the conditions on the hypervisor and manage the pods / deployments in kube-system to signal gardener that

  • the node is ready when the onboarding condition is completed
  • the node can be drained (and therefor terminated) if it has been evicted

@fwiesel fwiesel requested a review from notandy November 19, 2025 11:18
@fwiesel fwiesel force-pushed the gardener-node-lifecycle-hv branch 2 times, most recently from 3604ae9 to 6fd924c Compare November 19, 2025 11:19
@fwiesel
Copy link
Contributor Author

fwiesel commented Nov 19, 2025

This assumes the maintenance-operator is deployed and sets the maintenance flag.

The eviction will now be triggered by the maintenance-operator, so drop
setting the label.

Watch the conditions on the hypervisor and manage the pods /
deployments in kube-system to signal gardener that
- the node is ready when the onboarding condition is completed
- the node can be drained (and therefor terminated) if it has been
  evicted
@github-actions
Copy link

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller 38.40% (+0.15%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/gardener_node_lifecycle_controller.go 76.19% (+10.09%) 42 (-17) 32 (-7) 10 (-10) 🎉
github.com/cobaltcore-dev/openstack-hypervisor-operator/internal/controller/utils.go 38.10% (+4.05%) 42 (-5) 16 26 (-5) 👍

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/gardener_node_lifecycle_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.

3 participants