Skip to content

Commit c75a6ba

Browse files
author
tony-landreth
committed
Removes superfluous function
1 parent 9008cc5 commit c75a6ba

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

internal/controller/postgrescluster/instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ func (r *Reconciler) reconcileInstance(
12241224

12251225
// Add postgres-exporter to the instance Pod spec
12261226
if err == nil && !feature.Enabled(ctx, feature.OpenTelemetryMetrics) {
1227-
err = addPGExporterToInstancePodSpec(ctx, cluster, &instance.Spec.Template, exporterQueriesConfig, exporterWebConfig)
1227+
err = addPGMonitorExporterToInstancePodSpec(ctx, cluster, &instance.Spec.Template, exporterQueriesConfig, exporterWebConfig)
12281228
}
12291229

12301230
// add nss_wrapper init container and add nss_wrapper env vars to the database and pgbackrest

internal/controller/postgrescluster/pgmonitor.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -236,19 +236,6 @@ func (r *Reconciler) reconcileMonitoringSecret(
236236
return nil, err
237237
}
238238

239-
// addPGExporterToInstancePodSpec performs the necessary setup to add
240-
// pgMonitor resources on a PodTemplateSpec for running postgres-exporter.
241-
func addPGExporterToInstancePodSpec(
242-
ctx context.Context,
243-
cluster *v1beta1.PostgresCluster,
244-
template *corev1.PodTemplateSpec,
245-
exporterQueriesConfig, exporterWebConfig *corev1.ConfigMap) error {
246-
247-
err := addPGMonitorExporterToInstancePodSpec(ctx, cluster, template, exporterQueriesConfig, exporterWebConfig)
248-
249-
return err
250-
}
251-
252239
// addPGMonitorExporterToInstancePodSpec performs the necessary setup to
253240
// add pgMonitor exporter resources to a PodTemplateSpec
254241
// TODO (jmckulk): refactor to pass around monitoring secret; Without the secret

0 commit comments

Comments
 (0)