fix(kube/nodes): show node events (#5246)

pull/4979/head
Chaim Lev-Ari 2021-07-20 16:49:33 +03:00 committed by GitHub
parent 8aa3bfc59c
commit 6a9b386df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -334,8 +334,8 @@ class KubernetesNodeController {
async getEventsAsync() {
try {
this.state.eventsLoading = true;
this.events = await this.KubernetesEventService.get();
this.events = _.filter(this.events.items, (item) => item.involvedObject.kind === 'Node');
const events = await this.KubernetesEventService.get();
this.events = events.filter((item) => item.Involved.kind === 'Node');
this.state.eventWarningCount = KubernetesEventHelper.warningCount(this.events);
} catch (err) {
this.Notifications.error('Failure', err, 'Unable to retrieve node events');