diff --git a/charts/minecraft/Chart.yaml b/charts/minecraft/Chart.yaml index 60fddeb..323344c 100755 --- a/charts/minecraft/Chart.yaml +++ b/charts/minecraft/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: minecraft -version: 5.0.0 +version: 5.1.0 appVersion: SeeValues home: https://minecraft.net/ description: Minecraft server diff --git a/charts/minecraft/examples/auto-curseforge-custom-loader.yaml b/charts/minecraft/examples/auto-curseforge-custom-loader.yaml new file mode 100644 index 0000000..683b52d --- /dev/null +++ b/charts/minecraft/examples/auto-curseforge-custom-loader.yaml @@ -0,0 +1,43 @@ +# Example configuration for AUTO_CURSEFORGE with custom modloader versions +# +# This example demonstrates how to override modloader versions when using +# CurseForge modpacks, which is useful when you need a newer Fabric Loader, +# Forge, or NeoForge version than what the modpack originally specified. + +minecraftServer: + # Accept the EULA (required) + eula: "TRUE" + + # Set the server type to AUTO_CURSEFORGE + type: AUTO_CURSEFORGE + + # Configure AUTO_CURSEFORGE settings + autoCurseForge: + # CurseForge API key - get from https://console.curseforge.com/ + # IMPORTANT: Store this in a Kubernetes secret in production! + apiKey: + key: "your-api-key-here" + + # Example: Cobblemon Fabric modpack + slug: "cobblemon-fabric" + + # Override the mod loader version from the modpack's default + # Example: Change from Fabric 0.16.10 to 0.16.14 + modLoaderVersion: "0.16.14" + + # Other standard AUTO_CURSEFORGE options + parallelDownloads: 4 + forceSynchronize: false + +# Recommended memory allocation for modpacks +resources: + requests: + memory: 4Gi + limits: + memory: 6Gi + +# Enable persistent storage for world data +persistence: + dataDir: + enabled: true + Size: 10Gi diff --git a/charts/minecraft/templates/deployment.yaml b/charts/minecraft/templates/deployment.yaml index ec8143b..b4d0156 100644 --- a/charts/minecraft/templates/deployment.yaml +++ b/charts/minecraft/templates/deployment.yaml @@ -280,6 +280,7 @@ spec: {{- if .overridesSkipExisting }} {{- template "minecraft.envMap" list "CF_OVERRIDES_SKIP_EXISTING" "true" }} {{- end }} +{{- template "minecraft.envMap" list "CF_MOD_LOADER_VERSION" .modLoaderVersion }} {{- end }} {{- end }} diff --git a/charts/minecraft/values.schema.json b/charts/minecraft/values.schema.json index 1b9349f..2d4e527 100644 --- a/charts/minecraft/values.schema.json +++ b/charts/minecraft/values.schema.json @@ -131,6 +131,9 @@ }, "overridesSkipExisting": { "type": "boolean" + }, + "modLoaderVersion": { + "type": "string" } } }, diff --git a/charts/minecraft/values.yaml b/charts/minecraft/values.yaml index 8eba32c..5efdf6c 100644 --- a/charts/minecraft/values.yaml +++ b/charts/minecraft/values.yaml @@ -355,6 +355,8 @@ minecraftServer: # Set to skip files in modpack "overrides" folder that would replace existing files # NOTE: World data is always skipped if present overridesSkipExisting: false + # Override the mod loader version specified in the modpack + modLoaderVersion: "" rcon: # If you enable this, make SURE to change your password below.