fix(node): call node usage [r8s-106] (#12304)

pull/12274/merge
Ali 2024-10-08 11:39:05 +13:00 committed by GitHub
parent 9ce4ac9c9e
commit 44d6c0885e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -310,8 +310,10 @@ class KubernetesNodeController {
}
getNodeUsage() {
if (this.hasResourceUsageAccess()) {
return this.$async(this.getNodeUsageAsync);
}
}
hasEventWarnings() {
return this.state.eventWarningCount;
@ -361,9 +363,7 @@ class KubernetesNodeController {
useServerMetrics: this.endpoint.Kubernetes.Configuration.UseServerMetrics,
};
await this.getNodes();
await this.getEvents();
await this.getEndpoints();
await Promise.allSettled([this.getNodes(), this.getEvents(), this.getEndpoints(), this.getNodeUsage()]);
this.availableEffects = _.values(KubernetesNodeTaintEffects);
this.formValues = KubernetesNodeConverter.nodeToFormValues(this.node);