Skip to content

Commit ed6acc1

Browse files
redbaronsdudoladov
authored andcommitted
Correctly report success in .status on Update (zalando#469)
1 parent 90c2503 commit ed6acc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cluster/cluster.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ func (c *Cluster) Update(oldSpec, newSpec *acidv1.Postgresql) error {
494494
defer func() {
495495
if updateFailed {
496496
c.setStatus(acidv1.ClusterStatusUpdateFailed)
497-
} else if c.Status != acidv1.ClusterStatusRunning {
497+
} else {
498498
c.setStatus(acidv1.ClusterStatusRunning)
499499
}
500500
}()

0 commit comments

Comments
 (0)