[HOTFIX] Disable Non-clusterrole permissions
This commit is contained in:
parent
8fb5b34c77
commit
d9ab9486d0
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ kc.loadFromDefault();
|
|||
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
|
||||
// Get Routes
|
||||
router.get("/available", (req, res) => {
|
||||
return res.json({cpu: 8000, memory: 16000});
|
||||
// TODO Workaround to detect available
|
||||
k8sApi.listNode().then((nodeRes) => {
|
||||
const nodeAllocatable = nodeRes.body.items.map((i) => i.status.allocatable);
|
||||
const nodeResources = nodeAllocatable.map(({ cpu, memory }) => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue