mirror of https://github.com/linkerd/linkerd2.git
Fix tap filter authority (#4810)
Tap component is calling fetch metrics with skip_stats and authority service type is not sent.So, authority dropdown is not getting populated. Added a seperate call to get metrics for authority Fixes #4697 Signed-off-by: Tharun <rajendrantharun@live.com>
This commit is contained in:
parent
c2301749ef
commit
b45abeaad5
|
@ -262,11 +262,12 @@ class Tap extends React.Component {
|
|||
});
|
||||
|
||||
const url = this.api.urlsForResourceNoStats('all');
|
||||
this.api.setCurrentRequests([this.api.fetchMetrics(url)]);
|
||||
const authorityUrl = this.api.urlsForResource('authority');
|
||||
this.api.setCurrentRequests([this.api.fetchMetrics(url), this.api.fetchMetrics(authorityUrl)]);
|
||||
this.serverPromise = Promise.all(this.api.getCurrentPromises())
|
||||
.then(([rsp]) => {
|
||||
const { resourcesByNs, authoritiesByNs } = groupResourcesByNs(rsp);
|
||||
|
||||
.then(rsp => {
|
||||
const { resourcesByNs } = groupResourcesByNs(rsp[0]);
|
||||
const { authoritiesByNs } = groupResourcesByNs(rsp[1]);
|
||||
this.setState({
|
||||
resourcesByNs,
|
||||
authoritiesByNs,
|
||||
|
|
Loading…
Reference in New Issue