mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-21 20:22:41 +09:00
An egress Service without the tailscale.com/hostname annotation gets the default proxy hostname <namespace>-<name>. When that hostname exceeds 63 bytes, the operator rejects the Service. This includes ProxyGroup egress Services, which do not use the hostname. For egress Services, shorten a default that is too long to a 54-char prefix and an 8-char hash. Defaults that fit do not change, so no existing proxy is renamed. Explicit annotations and ingress hostnames keep the current validation. Rename TruncateLabelValue to TruncateWithHash, as it now also truncates hostnames. Fixes #22080 Change-Id: Ib1589a5e9c750cd37d0641829a84fabd0c4352a7 Signed-off-by: David Bond <davidsbond93@gmail.com>