change name of status field

This commit is contained in:
Felix Kunde
2019-04-03 17:33:56 +02:00
parent 313db7d10b
commit 3887938ab9
9 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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++