cmd/containerboot: don't attempt to write kube Secret in non-kube environments (#14358)
Updates tailscale/tailscale#14354 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
parent
8b1d01161b
commit
0cc071f154
@ -72,9 +72,11 @@ func watchServeConfigChanges(ctx context.Context, path string, cdChanged <-chan
|
|||||||
if err := updateServeConfig(ctx, sc, certDomain, lc); err != nil {
|
if err := updateServeConfig(ctx, sc, certDomain, lc); err != nil {
|
||||||
log.Fatalf("serve proxy: error updating serve config: %v", err)
|
log.Fatalf("serve proxy: error updating serve config: %v", err)
|
||||||
}
|
}
|
||||||
|
if kc != nil {
|
||||||
if err := kc.storeHTTPSEndpoint(ctx, certDomain); err != nil {
|
if err := kc.storeHTTPSEndpoint(ctx, certDomain); err != nil {
|
||||||
log.Fatalf("serve proxy: error storing HTTPS endpoint: %v", err)
|
log.Fatalf("serve proxy: error storing HTTPS endpoint: %v", err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
prevServeConfig = sc
|
prevServeConfig = sc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user