mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-20 11:58:39 +00:00
ipn/ipnlocal: log if ServeConfig cannot be configured
We have lately seen a bunch of mystery issues where serve config 'disappears' on kube, which may have been because of transient errors when reading state from a kube Secret. Updates tailscale/tailscale#13900,tailscale/tailscale#12079 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
parent
7fe6e50858
commit
c771d2ed86
@ -5729,6 +5729,7 @@ func (b *LocalBackend) reloadServeConfigLocked(prefs ipn.PrefsView) {
|
|||||||
// if the profile has not changed.
|
// if the profile has not changed.
|
||||||
confj, err := b.store.ReadState(confKey)
|
confj, err := b.store.ReadState(confKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
b.logf("error reading ServeConfig from tailscale state: %v, any previously set ServeConfig will be reset", err)
|
||||||
b.lastServeConfJSON = mem.B(nil)
|
b.lastServeConfJSON = mem.B(nil)
|
||||||
b.serveConfig = ipn.ServeConfigView{}
|
b.serveConfig = ipn.ServeConfigView{}
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user