diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index cd0a184aa..8840e2d6a 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -151,7 +151,7 @@ func (c *Cluster) setProcessName(procName string, args ...interface{}) { func (c *Cluster) setStatus(status string) { // 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}) if err != nil { c.logger.Errorf("could not marshal status: %v", err) }