This commit is contained in:
Murat Kabilov 2017-07-26 17:16:37 +02:00
parent 75218fec34
commit 9b58816269
1 changed files with 4 additions and 4 deletions

View File

@ -1,16 +1,16 @@
package controller package controller
import ( import (
"github.com/zalando-incubator/postgres-operator/pkg/util/config"
"github.com/zalando-incubator/postgres-operator/pkg/spec"
"github.com/zalando-incubator/postgres-operator/pkg/cluster" "github.com/zalando-incubator/postgres-operator/pkg/cluster"
"github.com/zalando-incubator/postgres-operator/pkg/spec"
"github.com/zalando-incubator/postgres-operator/pkg/util/config"
) )
type controllerStatus struct { type controllerStatus struct {
ControllerConfig Config ControllerConfig Config
OperatorConfig config.Config OperatorConfig config.Config
LastSyncTime int64 LastSyncTime int64
Clusters int Clusters int
} }
type clusterStatus struct { type clusterStatus struct {
@ -49,6 +49,6 @@ func (c *Controller) Status() interface{} {
ControllerConfig: c.config, ControllerConfig: c.config,
OperatorConfig: *c.opConfig, OperatorConfig: *c.opConfig,
LastSyncTime: c.lastClusterSyncTime, LastSyncTime: c.lastClusterSyncTime,
Clusters: len(c.clusters), Clusters: len(c.clusters),
} }
} }