Skip to content

Commit 69a5ac8

Browse files
committed
small fix for user-creation cpo_exporter
1 parent 8f659e0 commit 69a5ac8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/cluster/cluster.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,8 +1455,7 @@ func (c *Cluster) initSystemUsers() error {
14551455

14561456
// if the monitor object has been created, a monitoring user is required.
14571457
if c.Spec.Monitoring != nil {
1458-
c.logger.Debugf("MONITOR: Create cpo_monitoring user")
1459-
connectionPoolerUser := spec.PgUser{
1458+
MonitoringUser := spec.PgUser{
14601459
Origin: spec.RoleMonitoring,
14611460
Name: constants.MonitoringUserKeyName,
14621461
Namespace: c.Namespace,
@@ -1465,7 +1464,7 @@ func (c *Cluster) initSystemUsers() error {
14651464
}
14661465

14671466
if _, exists := c.systemUsers[constants.MonitoringUserKeyName]; !exists {
1468-
c.systemUsers[constants.ConnectionPoolerUserKeyName] = connectionPoolerUser
1467+
c.systemUsers[constants.MonitoringUserKeyName] = MonitoringUser
14691468
}
14701469
}
14711470

0 commit comments

Comments
 (0)