tailscale/cmd/containerboot
Nick Rossi b91e844014
util/def,cmd/containerboot: add LookupEnv, simplify env parsing (#20277)
Simplifies cmd/containerboot env var parsing. Most of the private helpers did
not earn their abstraction: defaultEnv(name, "") is just os.Getenv(name), and
the rest collapse into cmp.Or and the existing def.Bool. defaultEnv,
defaultEnvs and defaultBool are gone.

Adds def.LookupEnv, the env companion to def.Bool, for the one case that needs
it: TS_KUBE_SECRET, where an explicit "" disables Kubernetes secret storage and
must stay distinct from unset (cmp.Or cannot express that).

Updates #20018

Signed-off-by: Nick Rossi <nrossi0530@gmail.com>
2026-07-17 18:32:52 -07:00
..
egressservices_test.go cmd/{k8s-operator,containerboot,kube}: support IPv6 in egress ProxyGroup (#19898) 2026-07-14 13:26:40 +01:00
egressservices.go cmd/{k8s-operator,containerboot,kube}: support IPv6 in egress ProxyGroup (#19898) 2026-07-14 13:26:40 +01:00
forwarding.go all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
ingressservices_test.go cmd/containerboot: clamp MSS to PMTU for proxy group pods (#19686) 2026-05-28 12:57:38 +01:00
ingressservices.go cmd/containerboot: clamp MSS to PMTU for proxy group pods (#19686) 2026-05-28 12:57:38 +01:00
kube_test.go cmd/containerboot,cmd/k8s-proxy,kube: add authkey renewal to k8s-proxy (#19221) 2026-04-15 16:13:46 +01:00
kube.go cmd/containerboot,cmd/k8s-proxy,kube: add authkey renewal to k8s-proxy (#19221) 2026-04-15 16:13:46 +01:00
main_test.go cmd/containerboot: refresh DNS config on SelfChange (#20236) 2026-06-25 14:50:25 +01:00
main.go util/def,cmd/containerboot: add LookupEnv, simplify env parsing (#20277) 2026-07-17 18:32:52 -07:00
serve_test.go cmd/containerboot,kube: enable autoadvertisement of Tailscale services on containerboot (#18527) 2026-02-20 15:52:34 -08:00
serve.go cmd/containerboot: track peers from IPN bus updates, stop using netmap.NetworkMap 2026-05-27 14:12:48 -07:00
settings_test.go util/def,cmd/containerboot: add LookupEnv, simplify env parsing (#20277) 2026-07-17 18:32:52 -07:00
settings.go util/def,cmd/containerboot: add LookupEnv, simplify env parsing (#20277) 2026-07-17 18:32:52 -07:00
tailscaled.go cmd/containerboot,kube: enable autoadvertisement of Tailscale services on containerboot (#18527) 2026-02-20 15:52:34 -08: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