Show node events in node details

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2020-04-20 22:42:35 +03:00
1 parent c7f92494e0
commit 7324414cff
2 files changed
+5

No files matched your search

@@ -25,6 +25,9 @@ export class EventStore extends KubeObjectStore<KubeEvent> {
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;
});
}