mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
cmd/containerboot: don't write device ID when not in Kubernetes.
Fixes #6218. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
e0669555dd
commit
bf2d3cd074
@ -133,7 +133,7 @@ func main() {
|
||||
log.Fatalf("installing proxy rules: %v", err)
|
||||
}
|
||||
}
|
||||
if cfg.KubeSecret != "" {
|
||||
if cfg.InKubernetes && cfg.KubeSecret != "" {
|
||||
if err := storeDeviceID(ctx, cfg.KubeSecret, string(st.Self.ID)); err != nil {
|
||||
log.Fatalf("storing device ID in kube secret: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user