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 install` should be idempotent when failed. #142

Closed maqiuyujoyce closed 6 years ago

maqiuyujoyce commented 6 years ago

Currently, if we fail in sc install for the first time, fix the problem, and do sc install again, we'll see namespaces "service-catalog" already exists error. The workaround is to always run sc uninstall before sc install.

Ideally, nothing should happen after a command is failed. We need to cleanup namespace "service-catalog" when sc install fails.