mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-19 06:15:18 +02:00
Adjust critical flag
This commit is contained in:
+5
-1
@@ -125,9 +125,13 @@ func (c *Cluster) applyActions(actions []Action) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for action := range uniqueActions {
|
for action := range uniqueActions {
|
||||||
if dontStop, err := action.process(); err != nil && !dontStop {
|
if critical, err := action.process(); err != nil {
|
||||||
c.logger.Errorf("Can't apply action %s: %v", action.name(), err)
|
c.logger.Errorf("Can't apply action %s: %v", action.name(), err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if critical == true {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user