add error field for cluster status

This commit is contained in:
Murat Kabilov 2017-07-26 17:35:10 +02:00
parent 9b58816269
commit b0b25ecfd3
1 changed files with 2 additions and 0 deletions

View File

@ -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,
} }
} }