linkerd2/web/srv
Dennis Adjei-Baah d2a4027610
Hide the "Gateway" sidebar link (#5614)
* 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
2021-02-12 15:43:41 -06:00
..
testdata Gateway Metrics in Dashboard (#4717) 2020-07-27 12:43:54 -07:00
api_handlers.go Hide the "Gateway" sidebar link (#5614) 2021-02-12 15:43:41 -06:00
api_handlers_test.go Extract from public-api all the Prometheus dependencies, and moves things into a new viz component 'linkerd-metrics-api' (#5560) 2021-01-21 18:26:38 -05:00
handlers.go Extract from public-api all the Prometheus dependencies, and moves things into a new viz component 'linkerd-metrics-api' (#5560) 2021-01-21 18:26:38 -05:00
handlers_test.go Extract from public-api all the Prometheus dependencies, and moves things into a new viz component 'linkerd-metrics-api' (#5560) 2021-01-21 18:26:38 -05:00
reverse_proxy.go Add Jaeger links to the Linkerd dashboard (#4177) 2020-05-07 16:35:56 -05:00
server.go Hide the "Gateway" sidebar link (#5614) 2021-02-12 15:43:41 -06:00
test_helpers.go Enable lint check for comments (#2023) 2019-01-02 14:03:59 -08:00