mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 08:58:11 +02:00
Better logging for teams api calls
This commit is contained in:
+1
-4
@@ -11,7 +11,6 @@ import (
|
||||
"github.bus.zalan.do/acid/postgres-operator/pkg/controller"
|
||||
"github.bus.zalan.do/acid/postgres-operator/pkg/util/config"
|
||||
"github.bus.zalan.do/acid/postgres-operator/pkg/util/k8sutil"
|
||||
"github.bus.zalan.do/acid/postgres-operator/pkg/util/teams"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -48,12 +47,10 @@ func ControllerConfig() *controller.Config {
|
||||
|
||||
restClient, err := k8sutil.KubernetesRestClient(restConfig)
|
||||
|
||||
teamsApi := teams.NewTeamsAPI(cfg.TeamsAPIUrl)
|
||||
return &controller.Config{
|
||||
PodNamespace: podNamespace,
|
||||
PodNamespace: podNamespace, //TODO: move to config.Config
|
||||
KubeClient: client,
|
||||
RestClient: restClient,
|
||||
TeamsAPIClient: teamsApi,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user