mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 05:11:38 +02:00
going back to marshal a string to statisfy patch body
This commit is contained in:
@@ -152,7 +152,7 @@ func (c *Cluster) setProcessName(procName string, args ...interface{}) {
|
||||
func (c *Cluster) setStatus(status string) {
|
||||
c.logger.Debugf("updating status to %s", status)
|
||||
// TODO: eventually switch to updateStatus() for kubernetes 1.11 and above
|
||||
patch, err := json.Marshal(acidv1.PostgresStatus{PostgresClusterStatus: status})
|
||||
patch, err := json.Marshal(acidv1.PostgresStatus{PostgresClusterStatus: status}.String())
|
||||
if err != nil {
|
||||
c.logger.Errorf("could not marshal status: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user