tailscale/cmd/containerboot
Irbe Krumina 5b670eb3a5
cmd/containerboot: allow setting --accept-dns via TS_EXTRA_ARGS again (#16129)
In 1.84 we made 'tailscale set'/'tailscale up' error out if duplicate
command line flags are passed.
This broke some container configurations as we have two env vars that
can be used to set --accept-dns flag:
- TS_ACCEPT_DNS- specifically for --accept-dns
- TS_EXTRA_ARGS- accepts any arbitrary 'tailscale up'/'tailscale set'
flag.

We default TS_ACCEPT_DNS to false (to make the container behaviour more
declarative), which with the new restrictive CLI behaviour resulted in
failure for users who had set --accept-dns via TS_EXTRA_ARGS as the flag would be
provided twice.

This PR re-instates the previous behaviour by checking if TS_EXTRA_ARGS
contains --accept-dns flag and if so using its value to override TS_ACCEPT_DNS.

Updates tailscale/tailscale#16108

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2025-05-30 11:30:03 +01:00
..
certs_test.go cmd/containerboot: manage HA Ingress TLS certs from containerboot (#15303) 2025-03-14 17:33:08 +00:00
certs.go cmd/{k8s-operator,containerboot}: check TLS cert before advertising VIPService (#15427) 2025-03-26 01:32:13 +00:00
egressservices_test.go cmd/containerboot,kube/ingressservices: proxy VIPService TCP/UDP traffic to cluster Services (#15897) 2025-05-19 10:42:03 +01:00
egressservices.go cmd/containerboot,kube/ingressservices: proxy VIPService TCP/UDP traffic to cluster Services (#15897) 2025-05-19 10:42:03 +01:00
forwarding.go cmd/containerboot,util/linuxfw: create a SNAT rule for dst/src only once, clean up if needed (#13658) 2024-10-03 20:15:00 +01:00
healthz.go cmd/{containerboot,k8s-operator},kube/kubetypes: unadvertise ingress services on shutdown (#15451) 2025-04-09 10:11:15 +01:00
ingressservices_test.go cmd/containerboot,kube/ingressservices: proxy VIPService TCP/UDP traffic to cluster Services (#15897) 2025-05-19 10:42:03 +01:00
ingressservices.go cmd/containerboot,kube/ingressservices: proxy VIPService TCP/UDP traffic to cluster Services (#15897) 2025-05-19 10:42:03 +01:00
kube_test.go cmd/containerboot: wait for consistent state on shutdown (#14263) 2025-01-30 13:51:10 +00:00
kube.go cmd/containerboot: wait for consistent state on shutdown (#14263) 2025-01-30 13:51:10 +00:00
main_test.go cmd/containerboot: allow setting --accept-dns via TS_EXTRA_ARGS again (#16129) 2025-05-30 11:30:03 +01:00
main.go cmd/containerboot,kube/ingressservices: proxy VIPService TCP/UDP traffic to cluster Services (#15897) 2025-05-19 10:42:03 +01:00
metrics.go cmd/{containerboot,k8s-operator},kube/kubetypes: unadvertise ingress services on shutdown (#15451) 2025-04-09 10:11:15 +01:00
serve_test.go cmd/containerboot: manage HA Ingress TLS certs from containerboot (#15303) 2025-03-14 17:33:08 +00:00
serve.go cmd/containerboot,kube/ingressservices: proxy VIPService TCP/UDP traffic to cluster Services (#15897) 2025-05-19 10:42:03 +01:00
services.go cmd/containerboot,kube/ingressservices: proxy VIPService TCP/UDP traffic to cluster Services (#15897) 2025-05-19 10:42:03 +01:00
settings_test.go cmd/containerboot: allow setting --accept-dns via TS_EXTRA_ARGS again (#16129) 2025-05-30 11:30:03 +01:00
settings.go cmd/containerboot: allow setting --accept-dns via TS_EXTRA_ARGS again (#16129) 2025-05-30 11:30:03 +01:00
tailscaled.go cmd/containerboot: speed up tests (#14883) 2025-04-08 23:34:23 +01:00
test_tailscale.sh cmd/containerboot: make a tests table, add more tests. 2022-11-10 09:14:27 -08:00
test_tailscaled.sh cmd/containerboot: avoid leaking bash scripts after test runs 2023-09-21 13:17:48 -07:00