Skip to content

Commit 92d9505

Browse files
author
tony-landreth
committed
Updates comment
1 parent d71afac commit 92d9505

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

internal/controller/postgrescluster/pgmonitor.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,9 @@ func (r *Reconciler) reconcileMonitoringSecret(
157157
return nil, err
158158
}
159159

160+
// Checking if the exporter is enabled to determine when monitoring
161+
// secret should be created.
160162
if !pgmonitor.ExporterEnabled(ctx, cluster) && !feature.Enabled(ctx, feature.OpenTelemetryMetrics) {
161-
// TODO: Checking if the exporter is enabled to determine when monitoring
162-
// secret should be created. If more tools are added to the monitoring
163-
// suite, they could need the secret when the exporter is not enabled.
164-
// This check may need to be updated.
165-
// Exporter is disabled; delete monitoring secret if it exists.
166163
if err == nil {
167164
err = errors.WithStack(r.deleteControlled(ctx, cluster, existing))
168165
}

0 commit comments

Comments
 (0)