mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-13 16:24:16 +02:00
zero: log organization and cluster IDs on startup (#5284)
This commit is contained in:
parent
2c2745b792
commit
2f3fa16338
1 changed files with 8 additions and 1 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
|
||||
"github.com/pomerium/pomerium/config"
|
||||
"github.com/pomerium/pomerium/internal/atomicutil"
|
||||
"github.com/pomerium/pomerium/internal/log"
|
||||
cluster_api "github.com/pomerium/pomerium/pkg/zero/cluster"
|
||||
)
|
||||
|
||||
|
@ -62,7 +63,13 @@ func (src *source) UpdateBootstrap(ctx context.Context, cfg cluster_api.Bootstra
|
|||
}
|
||||
|
||||
src.cfg.Store(incoming)
|
||||
src.markReady.Do(func() { close(src.ready) })
|
||||
src.markReady.Do(func() {
|
||||
log.Ctx(ctx).Info().
|
||||
Str("organization-id", cfg.OrganizationId).
|
||||
Str("cluster-id", cfg.ClusterId).
|
||||
Msg("loaded Pomerium Zero bootstrap config")
|
||||
close(src.ready)
|
||||
})
|
||||
|
||||
src.notifyListeners(ctx, incoming)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue