syself / cluster-api-provider-hetzner

Cluster API Provider Hetzner :rocket: The best way to manage Kubernetes clusters on Hetzner, fully declarative, Kubernetes-native and with self-healing capabilities
https://caph.syself.com
Apache License 2.0
619 stars 58 forks source link

:sparkles: Add constant hostnames to bare metal servers #1285

Closed janiskemper closed 5 months ago

janiskemper commented 5 months ago

What this PR does / why we need it: Adding the feature to keep hostnames of bare metal servers constant. This can be triggered by a feature flag on the Cluster object. It takes the usual "bm-" prefix together with the cluster name as well as the serverID of the bare metal server.

This feature can be used by adding the annotation "capi.syself.com/constant-bare-metal-hostname": "true" to Cluster objects.

TODOs: