cmd/k8s-operator: Set login server on tsrecorder nodes (#16443)

This commit modifies the recorder node reconciler to include the environment
variable added in https://github.com/tailscale/corp/pull/30058 which allows
for configuration of the coordination server.

Updates https://github.com/tailscale/corp/issues/29847

Signed-off-by: David Bond <davidsbond93@gmail.com>
This commit is contained in:
David Bond
2025-07-03 15:53:35 +01:00
committed by GitHub
parent 3a4b439c62
commit 5dc11d50f7
5 changed files with 24 additions and 11 deletions

View File

@@ -25,7 +25,10 @@ import (
"tailscale.com/tstest"
)
const tsNamespace = "tailscale"
const (
tsNamespace = "tailscale"
tsLoginServer = "example.tailscale.com"
)
func TestRecorder(t *testing.T) {
tsr := &tsapi.Recorder{
@@ -51,6 +54,7 @@ func TestRecorder(t *testing.T) {
recorder: fr,
l: zl.Sugar(),
clock: cl,
loginServer: tsLoginServer,
}
t.Run("invalid_spec_gives_an_error_condition", func(t *testing.T) {
@@ -234,7 +238,7 @@ func expectRecorderResources(t *testing.T, fc client.WithWatch, tsr *tsapi.Recor
role := tsrRole(tsr, tsNamespace)
roleBinding := tsrRoleBinding(tsr, tsNamespace)
serviceAccount := tsrServiceAccount(tsr, tsNamespace)
statefulSet := tsrStatefulSet(tsr, tsNamespace)
statefulSet := tsrStatefulSet(tsr, tsNamespace, tsLoginServer)
if shouldExist {
expectEqual(t, fc, auth)