[FEATURE] Alt Kubeenv
This commit is contained in:
parent
cdea22c08a
commit
3c6f31f6d7
7 changed files with 19 additions and 13 deletions
|
@ -1,13 +1,12 @@
|
|||
import { Router } from "express";
|
||||
import k8s from "@kubernetes/client-node";
|
||||
import { WARN } from "../util/logging.js";
|
||||
import kc from "../k8s/k8s-config.js";
|
||||
const router = Router();
|
||||
|
||||
import cairoAuthMiddleware from "./middlewares/auth-middleware.js";
|
||||
router.use(cairoAuthMiddleware);
|
||||
|
||||
const kc = new k8s.KubeConfig();
|
||||
kc.loadFromDefault();
|
||||
const k8sApi = kc.makeApiClient(k8s.CoreV1Api);
|
||||
// Get Routes
|
||||
router.get("/available", (req, res) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue