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:
parent
8aa3bfc59c
commit
6a9b386df8
1 changed files with 2 additions and 2 deletions
|
@ -334,8 +334,8 @@ class KubernetesNodeController {
|
||||||
async getEventsAsync() {
|
async getEventsAsync() {
|
||||||
try {
|
try {
|
||||||
this.state.eventsLoading = true;
|
this.state.eventsLoading = true;
|
||||||
this.events = await this.KubernetesEventService.get();
|
const events = await this.KubernetesEventService.get();
|
||||||
this.events = _.filter(this.events.items, (item) => item.involvedObject.kind === 'Node');
|
this.events = events.filter((item) => item.Involved.kind === 'Node');
|
||||||
this.state.eventWarningCount = KubernetesEventHelper.warningCount(this.events);
|
this.state.eventWarningCount = KubernetesEventHelper.warningCount(this.events);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.Notifications.error('Failure', err, 'Unable to retrieve node events');
|
this.Notifications.error('Failure', err, 'Unable to retrieve node events');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue