From 7bb7ebb7c54d0f203cc3572d982739effa5e7202 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Fri, 2 Sep 2022 15:02:44 +0200 Subject: [PATCH] pkg/tasks/prometheus.go: add comment --- pkg/tasks/prometheus.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/tasks/prometheus.go b/pkg/tasks/prometheus.go index 3097a61023..86fa4886aa 100644 --- a/pkg/tasks/prometheus.go +++ b/pkg/tasks/prometheus.go @@ -323,6 +323,8 @@ func (t *PrometheusTask) Run(ctx context.Context) error { if err = t.client.DeleteSecret(ctx, telemetrySecret); err != nil { return errors.Wrap(err, "deleting Prometheus telemetry secret failed") } + + // Reset variable to not send telemetry via remote-write. telemetrySecret = nil }