Skip to content

Commit

Permalink
Pass the process log config to Kube Service/Proxy (#17478)
Browse files Browse the repository at this point in the history
This PR allows Kube proxy/service to use the global logger settings defined for the process.

Fixes #17461
  • Loading branch information
tigrato authored Oct 17, 2022
1 parent c36feaa commit c4660bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/service/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ func (process *TeleportProcess) initKubernetesService(log *logrus.Entry, conn *C
AccessPoint: accessPoint,
LimiterConfig: cfg.Kube.Limiter,
OnHeartbeat: process.onHeartbeat(teleport.ComponentKube),
Log: log,
})
if err != nil {
return trace.Wrap(err)
Expand Down
1 change: 1 addition & 0 deletions lib/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3171,6 +3171,7 @@ func (process *TeleportProcess) initProxyEndpoint(conn *Connector) error {
LimiterConfig: cfg.Proxy.Limiter,
AccessPoint: accessPoint,
OnHeartbeat: process.onHeartbeat(component),
Log: log,
})
if err != nil {
return trace.Wrap(err)
Expand Down

0 comments on commit c4660bd

Please sign in to comment.