Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Broker improvements api updates #24

Merged
merged 3 commits into from
Dec 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TAG = 1.0.3
TAG = 1.0.4
DOCKERORG = quay.io/integreatly
BROKER_IMAGE_NAME = managed-service-broker

Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ $ oc process -f templates/broker.template.yaml \
-p IMAGE_ORG=<yourDockerOrg> \
-p CHE_DASHBOARD_URL=<cheDashBoardUrl> \
-p LAUNCHER_DASHBOARD_URL=<launcherDashBoardUrl> \
-p THREESCALE_DASHBOARD_URL=<3scaleDashBoardUrl> \
-p APICURIO_DASHBOARD_URL=<apiCurioDashBoardUrl> \
| oc create -f -

# Verify that the broker has been registered correctly and STATUS is 'Ready'
Expand All @@ -51,7 +53,8 @@ $ svcat get brokers
$ oc describe clusterservicebroker managed-service-broker
```

__NOTE:__ Che and Launcher do not need to be deployed to deploy the managed-service-broker, `CHE_DASHBOARD_URL` and `LAUNCHER_DASHBOARD_URL` just need to be set to a non-empty value.
__NOTE:__ The services requiring `X_DASHBOARD_URL` parameters do not need to be installed to run the broker, the parameters just need to be set to a non-empty value to deploy the template.

#### Add syndesis-crd:

```
Expand Down Expand Up @@ -134,12 +137,17 @@ Setup the managed-service-broker as outlined in [Deploy managed-service-broker](
```bash
# Set env vars for managed-service-broker url and API token.

# Expose a route to the managed service broker
$ oc expose svc/msb
$ oc get route msb -o=jsonpath='{.status.ingress[0].host}'
msb-managed-service-broker.127.0.0.1.nip.io

# Get API token
$ oc whoami -t
EkoH4sIC1aTBWRBNeAzYfkMoMc36W2V3nqPigulKK-s

$ export KUBERNETES_API_TOKEN=EkoH4sIC1aTBWRBNeAzYfkMoMc36W2V3nqPigulKK-s
$ export BROKER_URL=http://msb-managed-service-broker.127.0.0.1.nip.io // Your managed-service-broker route/URL
$ export BROKER_URL=http://msb-managed-service-broker.127.0.0.1.nip.io // Add protocol: http://....

# If KUBERNETES_CONFIG is not already set.
export KUBERNETES_CONFIG=~/.kube/config
Expand Down
19 changes: 8 additions & 11 deletions cmd/broker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ func runWithContext(ctx context.Context) error {
return nil
}

namespace := os.Getenv("POD_NAMESPACE")

addr := ":" + strconv.Itoa(options.Port)
var err error

Expand All @@ -88,25 +86,24 @@ func runWithContext(ctx context.Context) error {
k8sClient := k8sclient.GetKubeClient()
osClient := openshift.NewClientFactory(cfg)

ctrlr := controller.CreateController(namespace, k8sClient, osClient)



deployers := []controller.Deployer{}
if shouldRegisterService( fuseOnlineServiceName) {
ctrlr.RegisterDeployer(fuse.NewDeployer("fuse-deployer"))
deployers = append(deployers, fuse.NewDeployer(k8sClient, osClient))
}
if shouldRegisterService(launcherServiceName) {
ctrlr.RegisterDeployer(launcher.NewDeployer("launcher-deployer"))
deployers = append(deployers, launcher.NewDeployer())
}
if shouldRegisterService( cheServiceName) {
ctrlr.RegisterDeployer(che.NewDeployer("che-deployer"))
deployers = append(deployers, che.NewDeployer())
}
if shouldRegisterService( threeScaleServiceName) {
ctrlr.RegisterDeployer(threescale.NewDeployer("3scale-deployer"))
deployers = append(deployers, threescale.NewDeployer())
}
if shouldRegisterService( apicurioServiceName) {
ctrlr.RegisterDeployer(apicurio.NewDeployer("apicurio-deployer"))
deployers = append(deployers, apicurio.NewDeployer())
}
ctrlr := controller.CreateController(deployers)

ctrlr.Catalog()

if options.TLSCert == "" && options.TLSKey == "" {
Expand Down
3 changes: 0 additions & 3 deletions pkg/apis/aerogear/v1alpha1/doc.go

This file was deleted.

201 changes: 0 additions & 201 deletions pkg/apis/aerogear/v1alpha1/types.go

This file was deleted.

Loading