Skip to content

Commit

Permalink
Add customCommand and customArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
0SkillAllLuck committed Oct 26, 2021
1 parent 04a95a5 commit bc1a49c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/minecraft-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: minecraft-server
version: 0.1.804
version: 0.1.805
appVersion: v0.1.8
description: Docker Minecraft Server image with support for Plugins etc.
home: https://github.com/qumine/minecraft-server
Expand Down
16 changes: 16 additions & 0 deletions charts/minecraft-server/questions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ questions:
required: true
label: Custom URL
group: Server
- variable: server.customCommand
if: "server.eula == true && server.type == \"CUSTOM\""
default: "java"
description: The download URL for the custom server.jar to install
type: string
required: true
label: Custom URL
group: Server
- variable: server.customArgs
if: "server.eula == true && server.type == \"CUSTOM\""
default: "-jar,server.jar,nogui"
description: The download URL for the custom server.jar to install
type: string
required: true
label: Custom URL
group: Server
- variable: server.starterJarURL
if: "server.eula == true && server.type == \"STARTER\""
default: https://github.com/Yoosk/ServerStarter/releases/download/v2.1.0/serverstarter-2.1.0.jar
Expand Down
4 changes: 4 additions & 0 deletions charts/minecraft-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ spec:
{{- if (eq .Values.server.type "CUSTOM") }}
- name: SERVER_CUSTOM_URL
value: {{ .Values.server.customURL }}
- name: SERVER_CUSTOM_COMMAND
value: {{ .Values.server.customCommand }}
- name: SERVER_CUSTOM_ARGS
value: {{ .Values.server.customArgs }}
{{- else if (eq .Values.server.type "STARTER") }}
- name: SERVER_STARTER_JAR_URL
value: {{ .Values.server.starterJarURL }}
Expand Down
4 changes: 4 additions & 0 deletions charts/minecraft-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ server:
forceUpdate: false
# The version of server to download/start.
customURL: "latest"
# The custom command to execute
customCommand: "java"
# The version of server to download/start.
customArgs: "-jar,server.jar,nogui"
# The url for the ServerStarter jar file.
starterJarURL: "https://github.com/Yoosk/ServerStarter/releases/download/v2.1.0/serverstarter-2.1.0.jar"
# The url for the ServerStarter server-setup-config file.
Expand Down

0 comments on commit bc1a49c

Please sign in to comment.