automationbroker / apb

A CLI tool for listing and deploying Service Bundles
http://automationbroker.io
Apache License 2.0
61 stars 13 forks source link

Add broker route suffix as a config option #123

Closed dymurray closed 6 years ago

dymurray commented 6 years ago

Testing from a 3.9 cluster

[dymurray@pups apb]$ apb config                                         
Broker namespace [default: openshift-automation-service-broker]:        
Broker resource URL [default: /apis/servicecatalog.k8s.io/v1beta1/clusterservicebrokers/]: ^C
[dymurray@pups apb]$ apb config                                         
Broker namespace [default: openshift-automation-service-broker]: ansible-service-broker
Broker resource URL [default: /apis/servicecatalog.k8s.io/v1beta1/clusterservicebrokers/]:
Broker route name [default: broker]: asb                               
clusterservicebroker resource name [default: openshift-automation-service-broker]: ansible-service-broker
Broker route suffix [default: osb]:                                     

Saving new configuration....                                            
[dymurray@pups apb]$ apb broker catalog                                 
ERROR: logging before flag.Parse: I0822 17:27:09.475147   19499 client.go:206] handling failure responses
ERRO Failed fetch catalog: Status: 404; ErrorMessage: <nil>; Description: <nil>; ResponseError: <nil>
[dymurray@pups apb]$ apb config                                        
Broker namespace [default: openshift-automation-service-broker]: ansible-service-broker
Broker resource URL [default: /apis/servicecatalog.k8s.io/v1beta1/clusterservicebrokers/]:
Broker route name [default: broker]: asb
clusterservicebroker resource name [default: openshift-automation-service-broker]: ansible-service-broker
Broker route suffix [default: osb]: ansible-service-broker

Saving new configuration....
[dymurray@pups apb]$ apb broker catalog
 NAME                         ID                                   BINDABLE
 ------------------------ -+- -------------------------------- -+- --------
 dh-iscsi-demo-target-apb  |  595db86e75325f430afa4fa3f7d69af9  |  false
 dh-rhelvm-apb             |  411c51353e6605302235d3379de3ebd0  |  false
 dh-pyzip-demo-apb         |  0e991006d21029e47abe71acc255e807  |  false