Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support listing all available namespaces #27

Closed

Conversation

tumido
Copy link
Contributor

@tumido tumido commented Nov 3, 2020

Resolves #26

Back-end implementation. If it's intended to visualize this in any way on front-end, there should come another PR for that.

This PR makes the node back-end to lookup for all namespaces to which it has access to (via Openshift project resource). This happens at the server startup. If this lookup fails, it falls back to using the original implementation for looking up the current namespace.

During runtime, when serving requests to /api/components, the component lookup code tries for fetch all kfdef resources in all available namespaces (even when multiple kfdefs are present in the same namespace) and then builds the application list out of it.

Later on, it may be needed to change the lookup logic to allow for duplicate apps listing.

The available namespaces are determined by Openshift RBAC - only the namespaces to which the ODH dashboard's service account has access to, are queried.

Backend now lists the namespace property for each enabled component in the /api/components response.

@tumido
Copy link
Contributor Author

tumido commented Nov 5, 2020

cc @cfchase please review 🙂

@tumido tumido force-pushed the support-multiple-namespaces branch from fba8e9c to bb9193f Compare December 2, 2020 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to add components deployed in other namespaces
2 participants