Skip to content

Commit a01b5e7

Browse files
author
tony-landreth
committed
Rename fn to DisableMonitoringUserInPostgres
1 parent 92d9505 commit a01b5e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/controller/postgrescluster/pgmonitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (r *Reconciler) reconcilePGMonitorExporter(ctx context.Context,
101101

102102
if !pgmonitor.ExporterEnabled(ctx, cluster) && !feature.Enabled(ctx, feature.OpenTelemetryMetrics) {
103103
action = func(ctx context.Context, exec postgres.Executor) error {
104-
return pgmonitor.DisableExporterInPostgreSQL(ctx, exec)
104+
return pgmonitor.DisableMonitoringUserInPostgres(ctx, exec)
105105
}
106106
}
107107

internal/pgmonitor/postgres.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ func PostgreSQLParameters(ctx context.Context, inCluster *v1beta1.PostgresCluste
4646
}
4747
}
4848

49-
// DisableExporterInPostgreSQL disables the exporter configuration in PostgreSQL.
49+
// DisableMonitoringUserInPostgres disables the exporter configuration in PostgreSQL.
5050
// Currently the exporter is disabled by removing login permissions for the
5151
// monitoring user.
5252
// TODO: evaluate other uninstall/removal options
53-
func DisableExporterInPostgreSQL(ctx context.Context, exec postgres.Executor) error {
53+
func DisableMonitoringUserInPostgres(ctx context.Context, exec postgres.Executor) error {
5454
log := logging.FromContext(ctx)
5555

5656
stdout, stderr, err := exec.Exec(ctx, strings.NewReader(`

0 commit comments

Comments
 (0)