mirror of https://github.com/linkerd/linkerd2.git
* Hide the "Gateway" sidebar link This commit hides the "Gateway" sidebar link in the dashboard if the `linkerd-multicluster` extension is not installed. If a user happens to navigate to the Gateway page anyway, we display a CTA (Call to Action) that informs the user that they would need to run the multicluster install command. This change includes a new endpoint in the dashboard server; `GET /api/extensions`. This endpoint returns the namespace an extension is installed in when passing in extension name. The dashboard uses this endpoint to detect whether it needs to hide the navigation link and whether to display the CTA. Fixes #5330 |
||
|---|---|---|
| .. | ||
| testdata | ||
| api_handlers.go | ||
| api_handlers_test.go | ||
| handlers.go | ||
| handlers_test.go | ||
| reverse_proxy.go | ||
| server.go | ||
| test_helpers.go | ||