From 2784493665cec128e6aee94449f834769cbc6e25 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Thu, 2 May 2019 14:16:06 +0200 Subject: [PATCH] going back to marshal a string to statisfy patch body --- pkg/cluster/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index d7b76b8f3..2e1476883 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -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) }