add error field for cluster status
This commit is contained in:
parent
9b58816269
commit
b0b25ecfd3
|
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue