mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
fix(metrics): disable metric server api calls if metric server is disabled on k8s endpoint EE-1273 EE-1274 (#5377)
* - metric server api call disabled on cluster view - metric server api call disabled on node view - metric server api call disabled on namespace view * enforcing resource access to function to ensure similarity to ee implementation
This commit is contained in:
parent
7b6a31181e
commit
5fe90db36a
5 changed files with 29 additions and 17 deletions
|
@ -85,7 +85,7 @@
|
|||
memory-usage="ctrl.resourceUsage.Memory"
|
||||
memory-limit="ctrl.memoryLimit"
|
||||
description="Resource reservation represents the total amount of resource assigned to all the applications running on this node."
|
||||
display-usage="ctrl.state.isAdmin"
|
||||
display-usage="ctrl.hasResourceUsageAccess()"
|
||||
>
|
||||
</kubernetes-resource-reservation>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue