Skip to content

Commit

Permalink
Only pull collector image if OpenTelemetry is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee committed Oct 18, 2023
1 parent 2125998 commit 020d48d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/infra/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,11 @@ func runContainers(ctx context.Context, params RunParams, api *server.API) error
return err
}

err = pullImage(ctx, cli, params.CollectorImage)
if err != nil {
return err
if params.EnableOpenTelemetry == true {
err = pullImage(ctx, cli, params.CollectorImage)
if err != nil {
return err
}
}

err = pullImage(ctx, cli, params.UpdaterImage)
Expand Down

0 comments on commit 020d48d

Please sign in to comment.