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