1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

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

This commit is contained in:
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

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');