How miaits/provider-hetzner works
Provider Hetzner is a Crossplane provider that exposes Hetzner Cloud infrastructure as Kubernetes managed resources. Users install and configure the provider, then submit resource specifications; registered controllers watch those resources and reconcile desired state through Upjet/Terraform connectors. The product spans compute, networking, storage, and load-balancing resources in both cluster-scoped and namespaced forms. The excerpts show startup wiring and representative controller behavior, but most controllers and provider configuration internals were not sampled, so their finer-grained runtime links are not asserted.
Main entry points: cluster Cluster resources · main.go Provider process · loadbalancer Load balancer reconcile · networkattachment Server network reconcile
Components 11
Provider runtime
- Provider process
cmd/provider/main.go
Managed resource APIs
- Cluster resources
apis/cluster - Namespaced resources
apis/namespaced
Reconciliation controllers
- Cluster controllers
internal/controller/cluster - Namespaced controllers
internal/controller/namespaced - Load balancer reconcile
internal/controller/cluster/loadbalancer - Server network reconcile
internal/controller/cluster/server/networkattachment
Provider configuration
- Provider configuration
config/provider.go - Hetzner client
internal/clients/hetzner.go
Other components
- Platform operator
- Hetzner Cloud
Connections 13
- Platform operator → Provider process: installs
- Platform operator → Provider configuration: configures
- Platform operator → Cluster resources: applies resources
- Provider process → Cluster controllers: sets up
cmd/provider/main.go - Provider process → Namespaced controllers: sets up
cmd/provider/main.go - Cluster controllers → Cluster resources: watches
internal/controller/cluster/loadbalancer/loadbalancerservice/zz_controller.go - Namespaced controllers → Namespaced resources: watches
internal/controller/namespaced/loadbalancer/loadbalancerservice/zz_controller.go - Load balancer reconcile → Cluster resources: watches resource
internal/controller/cluster/loadbalancer/loadbalancerservice/zz_controller.go - Server network reconcile → Cluster resources: watches resource
internal/controller/cluster/server/networkattachment/zz_controller.go - Provider configuration → Hetzner client: supplies credentials
- Load balancer reconcile → Hetzner Cloud: reconciles through connector
- Server network reconcile → Hetzner Cloud: reconciles through connector
- Hetzner client → Hetzner Cloud: connects