Skip to content

Commit

Permalink
Pass the errorgroup context to all the running components of odiglet (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
RonFed authored Dec 19, 2024
1 parent 19d228e commit 1b67b01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions odiglet/odiglet.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (o *Odiglet) Run(ctx context.Context) {
})

g.Go(func() error {
err := o.ebpfManager.Run(ctx)
err := o.ebpfManager.Run(groupCtx)
if err != nil {
log.Logger.Error(err, "Failed to run ebpf manager")
}
Expand All @@ -109,7 +109,7 @@ func (o *Odiglet) Run(ctx context.Context) {
// start OpAmp server
odigosNs := k8senv.GetCurrentNamespace()
g.Go(func() error {
err := server.StartOpAmpServer(ctx, log.Logger, o.mgr, o.clientset, env.Current.NodeName, odigosNs)
err := server.StartOpAmpServer(groupCtx, log.Logger, o.mgr, o.clientset, env.Current.NodeName, odigosNs)
if err != nil {
log.Logger.Error(err, "Failed to start opamp server")
}
Expand All @@ -119,7 +119,7 @@ func (o *Odiglet) Run(ctx context.Context) {

// start kube manager
g.Go(func() error {
err := o.mgr.Start(ctx)
err := o.mgr.Start(groupCtx)
if err != nil {
log.Logger.Error(err, "error starting kube manager")
} else {
Expand Down

0 comments on commit 1b67b01

Please sign in to comment.