feat: add .kuberrc.ts configuration
This commit is contained in:
+2
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user