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