mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
0f3a292ebd
cmd/tailscale/cli: respect $KUBECONFIG * `$KUBECONFIG` is a `$PATH`-like: it defines a *list*. `tailscale config kubeconfig` works like the rest of the ecosystem so that if $KUBECONFIG is set it will write to the first existant file in the list, if none exist then the final entry in the list. * if `$KUBECONFIG` is an empty string, the old logic takes over. Notes: * The logic for file detection is inlined based on what `kind` does. Technically it's a race condition, since the file could be removed/added in between the processing steps, but the fallout shouldn't be too bad. https://github.com/kubernetes-sigs/kind/blob/v0.23.0-alpha/pkg/cluster/internal/kubeconfig/internal/kubeconfig/paths.go * The sandboxed (App Store) variant relies on a specific temporary entitlement to access the ~/.kube/config file. The entitlement is only granted to specific files, and so is not applicable to paths supplied by the user at runtime. While there may be other ways to achieve this access to arbitrary kubeconfig files, it's out of scope for now. Updates #11645 Signed-off-by: Chloé Vulquin <code@toast.bunkerlabs.net> |
||
---|---|---|
.. | ||
addlicense | ||
build-webclient | ||
cloner | ||
connector-gen | ||
containerboot | ||
derper | ||
derpprobe | ||
dist | ||
get-authkey | ||
gitops-pusher | ||
hello | ||
k8s-nameserver | ||
k8s-operator | ||
mkmanifest | ||
mkpkg | ||
mkversion | ||
nardump | ||
netlogfmt | ||
nginx-auth | ||
pgproxy | ||
printdep | ||
proxy-to-grafana | ||
sniproxy | ||
speedtest | ||
ssh-auth-none-demo | ||
stunc | ||
stund | ||
sync-containers | ||
tailscale | ||
tailscaled | ||
testcontrol | ||
testwrapper | ||
tsconnect | ||
tsidp | ||
tsshd | ||
viewer |