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

move Google OAuth manager to unique namespace #148

Closed kibbles-n-bytes closed 6 years ago

kibbles-n-bytes commented 6 years ago

Currently, the Google OAuth manager is installed in the service-catalog namespace along with the core Service Catalog resources. This makes the case where users want to install Service Catalog themselves but still use our tool to manage the GCP broker, as we can't make assumptions about what is stored in service-catalog and whether we're able to delete them.

This PR: 1) Moves the auth manager to a new google-oauth namespace, so that we can definitively deal with these resources 2) Will only attempt to delete resources if they are not present 3) Adds deletion logic for the now-deprecated oauth resources in the service-catalog namespace

I tested with the following combinations of actions, and all worked as expected (old == old version of sc, new == version including these changes):

fixes: #143