feat: add .kuberrc.ts configuration

This commit is contained in:
2026-08-30 18:46:25 +07:00 Unverified
parent 32ec172335
commit 716246659c
15 changed files with 682 additions and 93 deletions
+2 -3
View File
@@ -1,13 +1,12 @@
import { basename } from "node:path";
import type { V1Deployment, V1Pod } from "@kubernetes/client-node";
import { LABELS } from "../const";
import { ctx } from "./context";
import { apps, core, objectApi } from "./k8s";
const ManagedBySelector = `app.kubernetes.io/managed-by=${LABELS["app.kubernetes.io/managed-by"]}`;
export function getProject() {
const cwd = process.cwd();
return basename(cwd);
return ctx().project;
}
export async function listDeployments(labelSelector?: string) {