mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-08 23:17:41 +02:00
add error field for cluster status
This commit is contained in:
@@ -21,6 +21,7 @@ type clusterStatus struct {
|
||||
Status spec.PostgresStatus
|
||||
Resources cluster.KubeResources
|
||||
Spec spec.PostgresSpec
|
||||
Error error
|
||||
}
|
||||
|
||||
func (c *Controller) ClusterStatus(team, cluster string) interface{} {
|
||||
@@ -41,6 +42,7 @@ func (c *Controller) ClusterStatus(team, cluster string) interface{} {
|
||||
Status: cl.Status,
|
||||
Resources: cl.KubeResources,
|
||||
Spec: cl.Spec,
|
||||
Error: cl.Error,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user