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

pull/12274/merge
Ali 2 months ago committed by GitHub
parent 9ce4ac9c9e
commit 44d6c0885e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -310,7 +310,9 @@ class KubernetesNodeController {
}
getNodeUsage() {
return this.$async(this.getNodeUsageAsync);
if (this.hasResourceUsageAccess()) {
return this.$async(this.getNodeUsageAsync);
}
}
hasEventWarnings() {
@ -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);

Loading…
Cancel
Save