mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 11:01:17 +02:00
change name of status field
This commit is contained in:
@@ -29,7 +29,7 @@ func (c *Controller) ClusterStatus(team, namespace, cluster string) (*cluster.Cl
|
||||
return nil, fmt.Errorf("could not find cluster")
|
||||
}
|
||||
|
||||
status := cl.GetStatus()
|
||||
status := cl.GetPostgresClusterStatus()
|
||||
status.Worker = c.clusterWorkerID(clusterName)
|
||||
|
||||
return status, nil
|
||||
|
||||
@@ -89,7 +89,7 @@ func (c *Controller) queueEvents(list *acidv1.PostgresqlList, event EventType) {
|
||||
activeClustersCnt++
|
||||
// check if that cluster needs repair
|
||||
if event == EventRepair {
|
||||
if pg.Status.Success() {
|
||||
if pg.PostgresClusterStatus.Success() {
|
||||
continue
|
||||
} else {
|
||||
clustersToRepair++
|
||||
|
||||
Reference in New Issue
Block a user