set PostgresClusterStatus to omitempty

This commit is contained in:
Felix Kunde
2019-04-04 18:58:29 +02:00
parent 6b0869a9f7
commit f3f3746a50
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ func (c *Cluster) setStatus(status acidv1.PostgresClusterStatus) {
b []byte
)
if b, err = json.Marshal(status); err != nil {
c.logger.Errorf("could not marshal Postgres cluster status: %v", err)
c.logger.Errorf("could not marshal status: %v", err)
}
patch := []byte(fmt.Sprintf(`{"Postgres cluster status": %s}`, string(b)))