Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

provide a REST API to return all tenant namespaces created by fabric8-tenant #369

Closed
jstrachan opened this issue Sep 19, 2017 · 4 comments
Closed
Assignees

Comments

@jstrachan
Copy link
Contributor

so that we can implement a gofabric8 uninstall command to remove all resources installed into a kubernetes/openshift cluster by fabric8

@jstrachan
Copy link
Contributor Author

am hoping we can use an openshift token for the auth on the REST API - as we'll be invoking this from gofabric8 where we know the OS token but don't know the KC token

@chmouel chmouel self-assigned this Sep 19, 2017
@chmouel
Copy link
Contributor

chmouel commented Sep 19, 2017

it seems that we already have the listing tenant api with /api/tenant rest call andhttps://github.com/fabric8-services/fabric8-tenant/blob/e749e4b7dc06b755341949889939ee9d6278814c/controller/tenant.go#L233 function

Is there anything else needed?

image

@jstrachan
Copy link
Contributor Author

yeah, we need a way to list all tenants installed on the cluster and their associated namespaces so we can uninstall them.

e.g. test cases could login with 3 different user accounts; causing 3 tenants to be created. We need a way to remove all 3 sets of tenant services for CI / CD tests or for users to clean down fabric8 installations

@fche
Copy link
Contributor

fche commented Nov 21, 2017

BTW for OSO/tenant monitoring purposes we need such an API too, ASAP. It should be suitable for use by an OSD-side serviceaccount rather than (say) only an OSIO admin/user.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants