mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 21:31:47 +02:00
set PostgresClusterStatus to omitempty
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user