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
676 stars 59 forks source link

Handle robot_unavailable errors when creating load balancers or adding targets to a load balancer #1134

Open janiskemper opened 9 months ago

janiskemper commented 9 months ago

/kind feature

Describe the solution you'd like According to the Hetzner documentation there is a possibility for the error robot_unavailable for both the operations https://docs.hetzner.cloud/#load-balancers-create-a-load-balancer and https://docs.hetzner.cloud/#load-balancer-actions-add-target.

We should implement a handling of this error code and wait for some time before we try this operation again. In this way, we prevent the controller from calling the API again and again.

We should include a condition (respectively a reason for a condition) that tracks this temporary problem for users.

guettli commented 2 months ago

I guess this issue is still valid, and we should handle these cases.