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
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue