going back to marshal a string to statisfy patch body
This commit is contained in:
parent
11b4b39697
commit
2784493665
|
|
@ -152,7 +152,7 @@ func (c *Cluster) setProcessName(procName string, args ...interface{}) {
|
||||||
func (c *Cluster) setStatus(status string) {
|
func (c *Cluster) setStatus(status string) {
|
||||||
c.logger.Debugf("updating status to %s", status)
|
c.logger.Debugf("updating status to %s", status)
|
||||||
// TODO: eventually switch to updateStatus() for kubernetes 1.11 and above
|
// 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 {
|
if err != nil {
|
||||||
c.logger.Errorf("could not marshal status: %v", err)
|
c.logger.Errorf("could not marshal status: %v", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue