Skip to content

Commit

Permalink
pod key (#44)
Browse files Browse the repository at this point in the history
Signed-off-by: ashutosh16 <[email protected]>
  • Loading branch information
ashutosh16 authored Jun 21, 2023
1 parent 68f2063 commit bd55752
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const ChartWrapper = ({
}
const metricObj: ChartDataProps = {
...obj,
name: obj?.metric && Object.values(obj?.metric).join(":"),
name: obj?.metric && typeof obj?.metric?.pod === 'string' ? obj?.metric?.pod: Object.values(obj?.metric).join(":"),
data: [],
};
obj?.values?.map((kp: [any, any], i: number) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,4 @@ export const component = Extension;
"Metrics",
{ icon: "fa fa-chart-area" }
);
window?.extensionsAPI?.registerResourceExtension(
component,
"",
"Pod",
"Metrics",
{ icon: "fa fa-chart-area" }
);
})(window);

0 comments on commit bd55752

Please sign in to comment.