{,cmd/}k8s-operator: minor nits self-review

Change-Id: Ic6fb93cefa9f7cd7e30c5e4f45c03f58d7a102f8
Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
This commit is contained in:
Tom Proctor 2025-07-07 11:09:09 +01:00
parent 0e605c53c8
commit 68b56d4b48
3 changed files with 1 additions and 8 deletions

View File

@ -963,10 +963,6 @@ func pgTailscaledConfig(pg *tsapi.ProxyGroup, pc *tsapi.ProxyClass, idx int32, a
conf.ServerURL = &loginServer
}
if pg.Spec.HostnamePrefix != "" {
conf.Hostname = ptr.To(fmt.Sprintf("%s-%d", pg.Spec.HostnamePrefix, idx))
}
if shouldAcceptRoutes(pc) {
conf.AcceptRoutes = "true"
}

View File

@ -427,10 +427,9 @@ func pgRole(pg *tsapi.ProxyGroup, namespace string) *rbacv1.Role {
},
ResourceNames: func() (secrets []string) {
for i := range pgReplicas(pg) {
podName := pgPodName(pg.Name, i)
secrets = append(secrets,
pgConfigSecretName(pg.Name, i), // Config with auth key.
podName, // State.
pgPodName(pg.Name, i), // State.
)
}
return secrets

View File

@ -226,6 +226,4 @@ const (
IngressSvcValid ConditionType = `TailscaleIngressSvcValid`
IngressSvcConfigured ConditionType = `TailscaleIngressSvcConfigured`
APIServerProxyReady ConditionType = `APIServerProxyReady`
)