fix
This commit is contained in:
parent
75218fec34
commit
9b58816269
|
|
@ -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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue