From e7c822eff1521ce9df0b52a0ca39d96617050fce Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Wed, 18 Oct 2023 14:21:38 -0700 Subject: [PATCH] Only pull collector image if OpenTelemetry is enabled --- internal/infra/run.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/infra/run.go b/internal/infra/run.go index 4f8e752..4ba91fd 100644 --- a/internal/infra/run.go +++ b/internal/infra/run.go @@ -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)