Skip to content

GardenerNodeLifecycle: Base it on the Hypervisor CRD, do not label node#184

Closed
fwiesel wants to merge 1 commit into
mainfrom
gardener-node-lifecycle-hv
Closed

GardenerNodeLifecycle: Base it on the Hypervisor CRD, do not label node#184
fwiesel wants to merge 1 commit into
mainfrom
gardener-node-lifecycle-hv

Conversation

@fwiesel

@fwiesel fwiesel commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

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

fwiesel commented Nov 19, 2025

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown

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

@github-actions

github-actions Bot commented Jan 5, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 45 days with no activity.

@github-actions github-actions Bot added the stale label Jan 5, 2026
@github-actions

Copy link
Copy Markdown

This PR was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions Bot closed this Jan 20, 2026
@fwiesel fwiesel reopened this Jan 20, 2026
@fwiesel fwiesel removed the stale label Jan 20, 2026
@github-actions

github-actions Bot commented Mar 7, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 45 days with no activity.

@github-actions github-actions Bot added the stale label Mar 7, 2026
@github-actions

Copy link
Copy Markdown

This PR was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions Bot closed this Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants