Dashboard should send repository cluster with assetsvc requests #2037
Labels
component/ui
Issue related to kubeapps UI
kind/feature
An issue that reports a feature (approved) to be implemented
Description:
When requesting the catalog of charts available for a namespace on a cluster, the auth-gate ensures the requestor has access to that namespace and cluster (e.g. /api/assetsvc/v1/clusters/second-cluster/namespaces/default/charts ) and so is cluster-aware, but then forwards the request so the assetsvc which responds with all charts available for use in that namespace (non-cluster aware).
Similarly, when viewing a specific chart, a request to the assetsvc will use the repository namespace (which could be the current namespace or the global namespace) but always the current cluster (as there is no concept yet of a repository cluster in the dashboard).
We can fix both issues simply by updating the assetsvc to be cluster aware (both in queries and in the app repository data stored).
The text was updated successfully, but these errors were encountered: