Two clusters that run robotlb in one Hetzner project pick the same default balancer name for Services with the same name and namespace. Today the default is the Service name, so any two Services with the same name clash.
#62 changes the default to <service>.<namespace> and labels each balancer with the UID of its Service. After that, the second cluster no longer takes over the first cluster's balancer. It gets a warning event, and its Service stays without a balancer until someone sets robotlb/balancer by hand.
I'd like an operator setting for a name prefix, for example the cluster name, that goes in front of the default name. The service and namespace part can already take 127 of the 128 characters Hetzner allows. So the prefix needs either a length check at startup or truncation with a hash.
Two clusters that run robotlb in one Hetzner project pick the same default balancer name for Services with the same name and namespace. Today the default is the Service name, so any two Services with the same name clash.
#62 changes the default to
<service>.<namespace>and labels each balancer with the UID of its Service. After that, the second cluster no longer takes over the first cluster's balancer. It gets a warning event, and its Service stays without a balancer until someone setsrobotlb/balancerby hand.I'd like an operator setting for a name prefix, for example the cluster name, that goes in front of the default name. The service and namespace part can already take 127 of the 128 characters Hetzner allows. So the prefix needs either a length check at startup or truncation with a hash.