From a22192e978c4dd9b6971a232aebc244afacc18ca Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Mon, 8 Dec 2025 12:19:12 +0500 Subject: [PATCH] fix: remove star technology + flake update --- core-services/traefik/values.yaml | 8 --- flake.lock | 6 +- gaming-services/minecraft/index.ts | 2 - gaming-services/minecraft/star-technology.ts | 74 -------------------- 4 files changed, 3 insertions(+), 87 deletions(-) delete mode 100644 gaming-services/minecraft/star-technology.ts diff --git a/core-services/traefik/values.yaml b/core-services/traefik/values.yaml index a363aed..4bfda62 100644 --- a/core-services/traefik/values.yaml +++ b/core-services/traefik/values.yaml @@ -26,7 +26,6 @@ additionalArguments: - "--entryPoints.ssh.address=:22/tcp" - "--entryPoints.minecraft-gtnh.address=:25566/tcp" - "--entryPoints.minecraft-tfg.address=:25567/tcp" - - "--entryPoints.minecraft-star-technology.address=:25568/tcp" ports: ssh: name: ssh @@ -49,10 +48,3 @@ ports: expose: default: true protocol: TCP - minecraft-star-technology: - name: minecraft-star-technology - port: 25568 - exposedPort: 25568 - expose: - default: true - protocol: TCP diff --git a/flake.lock b/flake.lock index 705d900..9c9c4d4 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1762943920, - "narHash": "sha256-ITeH8GBpQTw9457ICZBddQEBjlXMmilML067q0e6vqY=", + "lastModified": 1764587062, + "narHash": "sha256-hdFa0TAVQAQLDF31cEW3enWmBP+b592OvHs6WVe3D8k=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "91c9a64ce2a84e648d0cf9671274bb9c2fb9ba60", + "rev": "c1cb7d097cb250f6e1904aacd5f2ba5ffd8a49ce", "type": "github" }, "original": { diff --git a/gaming-services/minecraft/index.ts b/gaming-services/minecraft/index.ts index 456cf68..3b21e1e 100644 --- a/gaming-services/minecraft/index.ts +++ b/gaming-services/minecraft/index.ts @@ -5,7 +5,6 @@ import { NamespaceV1 } from "@cdktf/provider-kubernetes/lib/namespace-v1"; import { OnePasswordSecret } from "../../utils"; import { TerraFirmaGreg } from "./tfg"; import { GTNH } from "./gtnh"; -import { StarTechnology } from "./star-technology"; export class GamingServices extends TerraformStack { constructor(scope: Construct, id: string) { @@ -32,6 +31,5 @@ export class GamingServices extends TerraformStack { new TerraFirmaGreg(this, "tfg", provider, namespace); new GTNH(this, "gtnh", provider, namespace); - new StarTechnology(this, "star-technology", provider, namespace); } } diff --git a/gaming-services/minecraft/star-technology.ts b/gaming-services/minecraft/star-technology.ts deleted file mode 100644 index 8899591..0000000 --- a/gaming-services/minecraft/star-technology.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Construct } from "constructs"; -import { KubernetesProvider } from "@cdktf/provider-kubernetes/lib/provider"; - -import { MinecraftServer } from "./utils"; - -export class StarTechnology extends Construct { - constructor( - scope: Construct, - id: string, - provider: KubernetesProvider, - namespace: string, - ) { - super(scope, id); - - new MinecraftServer(this, "star-technology", { - provider, - namespace, - image: "itzg/minecraft-server:java21", - name: "star-technology", - env: [ - { - name: "EULA", - value: "TRUE", - }, - { - name: "MODE", - value: "survival", - }, - { - name: "MODPACK_PLATFORM", - value: "AUTO_CURSEFORGE", - }, - { - name: "CF_API_KEY", - valueFrom: { - secretKeyRef: { - name: "curseforge", - key: "credential", - }, - }, - }, - { - name: "CF_PAGE_URL", - value: - "https://www.curseforge.com/minecraft/modpacks/star-technology", - }, - { - name: "VERSION", - value: "1.20.1", - }, - { - name: "INIT_MEMORY", - value: "2G", - }, - { - name: "MAX_MEMORY", - value: "12G", - }, - { - name: "ALLOW_FLIGHT", - value: "TRUE", - }, - { - name: "ENABLE_ROLLING_LOGS", - value: "TRUE", - }, - { - name: "USE_MEOWICE_FLAGS", - value: "TRUE", - }, - ], - }); - } -}