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 add-gcp-broker fails on `ClusterServiceBroker` deploy file #226

Open bussyjd opened 5 years ago

bussyjd commented 5 years ago

Install on GKE fails with cluster version 1.12.5-gke.5. I am not sure how to fix this but happy to provide more information.

enabled required APIs:
  servicebroker.googleapis.com
  bigquery-json.googleapis.com
  bigtableadmin.googleapis.com
  ml.googleapis.com
  pubsub.googleapis.com
  spanner.googleapis.com
  sqladmin.googleapis.com
  storage-api.googleapis.com
generated the key at:  /tmp/service-catalog-gcp926102638/key.json
Broker "default", already exists
Failed to configure the Service Broker
Error: error deploying the Service Broker configs: deploy failed with output: exit status 1: error: unable to recognize "/tmp/service-catalog-gcp926102638/gcp-broker.yaml": no matches for kind "ClusterServiceBroker" in version "servicecatalog.k8s.io/v1beta1"                                                           

retrying doesn't help, the remove command also fails.

$ sc remove-gcp-broker                                                                                                    
Failed to remove the Service Broker
Error: error deleting broker resources: failed to delete resources output: exit status 1: error: unable to recognize "/tmp/service-catalog-gcp721808391/gcp-broker.yaml": no matches for kind "ClusterServiceBroker" in version "servicecatalog.k8s.io/v1beta1"  
TaylorMutch commented 5 years ago

I also have this issue.

enabled required APIs:
  servicebroker.googleapis.com
  bigquery-json.googleapis.com
  bigtableadmin.googleapis.com
  ml.googleapis.com
  pubsub.googleapis.com
  spanner.googleapis.com
  sqladmin.googleapis.com
  storage-api.googleapis.com
generated the key at:  /tmp/service-catalog-gcp088297047/key.json
Failed to configure the Service Broker
Error: error deploying the Service Broker configs: deploy failed with output: exit status 1: error: unable to recognize "/tmp/service-catalog-gcp088297047/gcp-broker.yaml": no matches for kind "ClusterServiceBroker" in version "servicecatalog.k8s.io/v1beta1"
TaylorMutch commented 5 years ago

Further, this is on a cluster that successfully is able to deploy the service catalog controller manager (avoiding issue https://github.com/GoogleCloudPlatform/k8s-service-catalog/issues/221).