♻️ refactor: remove stale code and comments

This commit is contained in:
2026-08-13 02:19:25 +07:00
parent 913c18b6b7
commit b58488c1b9
15 changed files with 10 additions and 48 deletions
@@ -10,7 +10,6 @@ export const NAMESPACE = process.env.KUBERNETES_NAMESPACE || "minikura";
export const ENABLE_CRD_REFLECTION = process.env.ENABLE_CRD_REFLECTION === "true";
// Resource types
export const RESOURCE_TYPES = {
MINECRAFT_SERVER: {
kind: "MinecraftServer",
@@ -26,8 +25,7 @@ export const RESOURCE_TYPES = {
},
};
// Polling intervals (in milliseconds)
export const SYNC_INTERVAL = 30 * 1000; // 30 seconds
export const SYNC_INTERVAL = 30 * 1000;
export const IMAGES = {
MINECRAFT: "itzg/minecraft-server",
@@ -9,7 +9,6 @@ export const RESOURCE_DEFAULTS = {
},
} as const;
// 80% of container memory goes to JVM heap; 20% headroom
export const JAVA_MEMORY_FACTOR = 0.8;
export const DEFAULT_SERVER_MEMORY = "1G";
-3
View File
@@ -4,7 +4,6 @@ import type {
Server as PrismaServer,
} from "@minikura/db";
// Base interface
export interface CustomResource {
apiVersion: string;
kind: string;
@@ -45,8 +44,6 @@ export interface MinecraftServerCRD extends CustomResource {
status?: MinecraftServerStatus;
}
// Reverse Proxy Types
export type ReverseProxyConfig = Pick<
PrismaReverseProxyServer,
| "id"