[FEATURE} Adjust error handling and bump versions
This commit is contained in:
parent
d47a8c3cc4
commit
360dd32860
19 changed files with 1052 additions and 455 deletions
|
@ -7,7 +7,7 @@ kc.loadFromDefault();
|
|||
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
|
||||
// Get Routes
|
||||
router.get("/available", (req, res) => {
|
||||
return res.json({cpu: 8000, memory: 16000});
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue