summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs_test.go
diff options
context:
space:
mode:
authorIrbe Krumina <irbe@tailscale.com>2024-04-19 16:49:46 +0100
committerGitHub <noreply@github.com>2024-04-19 16:49:46 +0100
commitbbe194c80d531c5f88010d4e31e17c060a8125e7 (patch)
tree20b00eeff35f3ce66f26063f226000ccab25e315 /control/controlknobs/controlknobs_test.go
parentd16c1293e907219e90597ea28c3cce30536c3a02 (diff)
downloadtailscale-bbe194c80d531c5f88010d4e31e17c060a8125e7.tar.xz
tailscale-bbe194c80d531c5f88010d4e31e17c060a8125e7.zip
cmd/k8s-operator: correctly determine cluster domain (#11512)
Kubernetes cluster domain defaults to 'cluster.local', but can also be customized. We need to determine cluster domain to set up in-cluster forwarding to our egress proxies. This was previously hardcoded to 'cluster.local', so was the egress proxies were not usable in clusters with custom domains. This PR ensures that we attempt to determine the cluster domain by parsing /etc/resolv.conf. In case the cluster domain cannot be determined from /etc/resolv.conf, we fall back to 'cluster.local'. Updates tailscale/tailscale#10399,tailscale/tailscale#11445 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs_test.go')
0 files changed, 0 insertions, 0 deletions