-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support bare-metal servers with hcloud-cloud-controller-manager #1470
Comments
@apricote would you be able to contribute here? |
@apricote @janiskemper did you already thought about a migration path? I think the "old" variant with |
@simonostendorf we at Syself have the wish to migrate to the "official" one at one point, but did not spend the time on developing or testing a clear migration path. I'd be happy if @apricote or someone else can contribute! |
@janiskemper If you have a defined migration path I can try and add this to my todo list, but I cannot promise anything. |
@guettli has spent some time on it, but I don't think that it is a "defined migration path" |
My idea would be:
|
thanks @apricote for your input! @batistein you also had some thoughts on the difficulties! |
Step 1 and Step 3 look good. However, I am unsure about Step 3. What do you mean by "hook"? I would not modify existing node objects. What do you think about these phases?
|
I think Phase 1 and 2 can be performed together, so that new nodes automatically get the hrobot provider id and the old variant is only for old nodes. |
/kind feature
Describe the solution you'd like
Right now you only support Robot (bare-metal) servers when using
syself/hetzner-cloud-controller-manager
.hetznercloud/hcloud-cloud-controller-manager
(HCCM) added support for Robot servers in December 2023. It would be awesome if you would also support this with CAPH.Anything else you would like to add:
As far as I could tell, the main problem is that CAPH expects the provider ID for bare-metal servers to be formatted as
hcloud://bm-$ROBOTID
. HCCM uses the formathrobot://$ROBOTID
.cluster-api-provider-hetzner/api/v1beta1/hetznerbaremetalmachine_types.go
Lines 40 to 41 in c05f7aa
cluster-api-provider-hetzner/pkg/scope/baremetalhost.go
Lines 142 to 151 in c05f7aa
cluster-api-provider-hetzner/controllers/csr_controller.go
Line 328 in c05f7aa
cluster-api-provider-hetzner/pkg/services/baremetal/baremetal/baremetal.go
Lines 895 to 897 in c05f7aa
Related to hetznercloud/hcloud-cloud-controller-manager#702
Environment:
kubectl version
)/etc/os-release
):The text was updated successfully, but these errors were encountered: