mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Show node events in node details (#285)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
1 parent
e9412f7474
commit
c1010c1315
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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user