Skip to content

Commit 21bea0b

Browse files
committed
removed text and fix if
1 parent a5325a6 commit 21bea0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/cluster/cluster.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (c *Cluster) Create() (err error) {
433433
// something fails, report warning
434434
c.createConnectionPooler(c.installLookupFunction)
435435

436-
if c.Spec.Monitoring != nil { #Hinzufügen und in database.go die function von pooler nachbauen und dann den unteren teil (alt) komplett entfernen
436+
if c.Spec.Monitoring != nil {
437437
c.addMonitoringPermissions()
438438
}
439439

@@ -1203,8 +1203,8 @@ func (c *Cluster) Update(oldSpec, newSpec *cpov1.Postgresql) error {
12031203
updateFailed = true
12041204
}
12051205

1206-
// Check if we need to call addMonitoringPermissions-func
1207-
if c.Spec.Monitoring != nil && needMonitoring){
1206+
// Check if we need to call addMonitoringPermissions-func
1207+
if c.Spec.Monitoring != nil && newSpec.Spec.Monitoring != nil && oldSpec.Spec.Monitoring == nil {
12081208
c.addMonitoringPermissions()
12091209
}
12101210

0 commit comments

Comments
 (0)