Create human users from teams api

This commit is contained in:
Murat Kabilov
2017-05-12 11:37:09 +02:00
parent 58506634c4
commit 6e2d64bd50
11 changed files with 287 additions and 117 deletions
+7 -3
View File
@@ -9,7 +9,9 @@ import (
"syscall"
"github.bus.zalan.do/acid/postgres-operator/pkg/controller"
"github.bus.zalan.do/acid/postgres-operator/pkg/util/constants"
"github.bus.zalan.do/acid/postgres-operator/pkg/util/k8sutil"
"github.bus.zalan.do/acid/postgres-operator/pkg/util/teams"
)
var (
@@ -43,10 +45,12 @@ func ControllerConfig() *controller.Config {
restClient, err := k8sutil.KubernetesRestClient(restConfig)
teamsApi := teams.NewTeamsAPI(constants.TeamsAPIUrl)
return &controller.Config{
Namespace: Namespace,
KubeClient: client,
RestClient: restClient,
Namespace: Namespace,
KubeClient: client,
RestClient: restClient,
TeamsAPIClient: teamsApi,
}
}