Skip to content

🌱 re-read hardwareDetails (backport #2096)#2183

Merged
guettli merged 1 commit into
release-1.1from
backport/2096-to-release-1.1
Jul 17, 2026
Merged

🌱 re-read hardwareDetails (backport #2096)#2183
guettli merged 1 commit into
release-1.1from
backport/2096-to-release-1.1

Conversation

@guettli

@guettli guettli commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Backport of #2096 to release-1.1.

Always refresh HardwareDetails in actionRegistering instead of only setting it when nil. This means hardware changes (e.g. NIC replacement → new IP, disk exchange) are picked up automatically on re-registration without manual intervention.

When the refreshed details differ from the previously stored ones, the controller logs a "HardwareDetails changed" message with the diff and emits a HardwareDetails changed Kubernetes event on the HetznerBareMetalHost object, so the change is visible on the object itself, not just in the logs.

Even if a hardware change makes the configured RootDeviceHints invalid (e.g. the disk referenced by WWN was replaced), the freshly read HardwareDetails is still persisted before that validation runs, so the object's status always reflects the current hardware.

Fixes #1789

@github-actions github-actions Bot added size/M Denotes a PR that changes 50-200 lines, ignoring generated files. area/code Changes made in the code directory labels Jul 16, 2026
@guettli
guettli requested a review from janiskemper July 16, 2026 15:46
@guettli
guettli merged commit 4dd3610 into release-1.1 Jul 17, 2026
6 checks passed
@guettli
guettli deleted the backport/2096-to-release-1.1 branch July 17, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/code Changes made in the code directory size/M Denotes a PR that changes 50-200 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants