Skip to content

Commit

Permalink
pkg/tasks/prometheus.go: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpasquier committed Sep 2, 2022
1 parent dde048e commit 7bb7ebb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/tasks/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7bb7ebb

Please sign in to comment.