diff --git a/dashboard/client/components/+events/event.store.ts b/dashboard/client/components/+events/event.store.ts index c91f7dec531d..23ebc7ccc91c 100644 --- a/dashboard/client/components/+events/event.store.ts +++ b/dashboard/client/components/+events/event.store.ts @@ -25,6 +25,9 @@ export class EventStore extends KubeObjectStore { getEventsByObject(obj: KubeObject): KubeEvent[] { return this.items.filter(evt => { + if(obj.kind == "Node") { + return obj.getName() == evt.involvedObject.uid && evt.involvedObject.kind == "Node"; + } return obj.getId() == evt.involvedObject.uid; }); } diff --git a/dashboard/client/components/+nodes/node-details.tsx b/dashboard/client/components/+nodes/node-details.tsx index 7153149d1b6e..259c5c2c1a56 100644 --- a/dashboard/client/components/+nodes/node-details.tsx +++ b/dashboard/client/components/+nodes/node-details.tsx @@ -18,6 +18,7 @@ import { reaction } from "mobx"; import { PodDetailsList } from "../+workloads-pods/pod-details-list"; import { apiManager } from "../../api/api-manager"; import { KubeObjectMeta } from "../kube-object/kube-object-meta"; +import { KubeEventDetails } from "../+events/kube-event-details"; interface Props extends KubeObjectDetailsProps { } @@ -148,6 +149,7 @@ export class NodeDetails extends React.Component { maxCpu={node.getCpuCapacity()} maxMemory={node.getMemoryCapacity()} /> + ) }