googlearchive / k8s-service-catalog

[DEPRECATED] Commandline tool to manage Service Catalog lifecycle and GCP Service Broker atop Kubernetes Cluster
Apache License 2.0
69 stars 31 forks source link

SC installer should update the version for gcp-broker in Service Catalog #123

Closed maqiuyujoyce closed 6 years ago

maqiuyujoyce commented 6 years ago

For an existent EAP user, running $ kubectl get clusterservicebroker gcp-broker -o yaml will return:

apiVersion: servicecatalog.k8s.io/v1beta1 kind: ClusterServiceBroker metadata:   creationTimestamp: ......   finalizers:   - kubernetes-incubator/service-catalog   generation: 1   name: gcp-broker   resourceVersion: ......   selfLink: /apis/servicecatalog.k8s.io/v1beta1/clusterservicebrokers/gcp-broker   uid: ...... spec:   authInfo:     bearer:       secretRef:         name: gcp-svc-account-secret         namespace: service-catalog   relistBehavior: Duration   relistDuration: 15m0s   relistRequests: 0   url: ht​tps://servicebroker.googleapis.com/v1alpha1/projects/maqiuyu-plori-beta/brokers/default status:   conditions:   - lastTransitionTime: ......     message: Successfully fetched catalog entries from broker.     reason: FetchedCatalog     status: "True"     type: Ready   lastCatalogRetrievalTime: ......   reconciledGeneration: 1

The version in the path for servicebroker.googleapis.com is v1alpha1. We need to add a new command to change it to v1beta1 (or any latest version).

maqiuyujoyce commented 6 years ago

We'll want to use the generated "clientset" package in Service Catalog to get the ClusterServiceBroker and update it with the new URL.

Example to use "clientset" package and get/update ClusterServiceBroker:

maqiuyujoyce commented 6 years ago

This issue is no longer needed.