File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
internal/controller/postgrescluster Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments