Skip to content

Commit

Permalink
fix: Add missing daemonset alerts in expanded row
Browse files Browse the repository at this point in the history
  • Loading branch information
tiithansen committed Jul 6, 2024
1 parent 57eb42c commit ac1bd53
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions src/pages/Workloads/tabs/DaemonSets/ExpandedRow.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { SceneFlexLayout } from "@grafana/scenes";
import { SceneFlexItem, SceneFlexLayout } from "@grafana/scenes";
import { getPodsScene } from "../Pods/Pods";
import { LabelFilters } from "common/queryHelpers";
import { TableRow } from "./types";
import { AlertsTable } from "components/AlertsTable";

export function buildExpandedRowScene(row: TableRow) {

Expand All @@ -23,7 +24,29 @@ export function buildExpandedRowScene(row: TableRow) {
width: '100%',
height: 500,
children: [
getPodsScene(staticLabelFilters, false, false)
],
new SceneFlexLayout({
direction: 'row',
height: 300,
children: [
new SceneFlexItem({
body: getPodsScene(staticLabelFilters, false, false)
}),
]
}),
new SceneFlexLayout({
direction: 'row',
children: [
new SceneFlexItem({
body: AlertsTable([
{
label: 'daemonset',
op: '=',
value: row.daemonset
}
], false, false)
})
],
})
]
});
}

0 comments on commit ac1bd53

Please sign in to comment.