cmd/k8s-operator: fix ProxyGroup hostname (#14336)

Updates tailscale/tailscale#14325

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
pull/14391/head
Irbe Krumina 12 months ago committed by GitHub
parent 1ed9bd76d6
commit cc168d9f6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -479,7 +479,7 @@ func pgTailscaledConfig(pg *tsapi.ProxyGroup, class *tsapi.ProxyClass, idx int32
}
if pg.Spec.HostnamePrefix != "" {
conf.Hostname = ptr.To(fmt.Sprintf("%s%d", pg.Spec.HostnamePrefix, idx))
conf.Hostname = ptr.To(fmt.Sprintf("%s-%d", pg.Spec.HostnamePrefix, idx))
}
if shouldAcceptRoutes(class) {

Loading…
Cancel
Save