Skip to content

Commit

Permalink
feat: populate SPIGET_RESOURCES env var (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaglesemanation authored Mar 18, 2022
1 parent 2fea96d commit 30076e5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/minecraft-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: minecraft-proxy
version: 2.5.1
version: 2.6.0
appVersion: SeeValues
description: Minecraft proxy server (BungeeCord, Waterfall, Velocity, etc.)
keywords:
Expand Down
5 changes: 0 additions & 5 deletions charts/minecraft-proxy/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{- define "helm-toolkit.utils.joinListWithComma" -}}
{{- $local := dict "first" true -}}
{{- range $k, $v := . -}}{{- if not $local.first -}},{{- end -}}{{- $v -}}{{- $_ := set $local "first" false -}}{{- end -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/minecraft-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ spec:
value: {{ .Values.minecraftProxy.jarRevision }}
{{- end }}
{{- end }}
{{- if .Values.plugins }}
{{- if .Values.minecraftProxy.plugins }}
- name: PLUGINS
value: {{ include "helm-toolkit.utils.joinListWithComma" .Values.plugins }}
value: {{ join "," .Values.minecraftProxy.plugins }}
{{- end }}
- name: MEMORY
value: {{ .Values.minecraftProxy.memory | quote }}
Expand Down
2 changes: 1 addition & 1 deletion charts/minecraft/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: minecraft
version: 3.8.2
version: 3.8.3
appVersion: SeeValues
home: https://minecraft.net/
description: Minecraft server
Expand Down
4 changes: 4 additions & 0 deletions charts/minecraft/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ spec:
value: "TRUE"
{{- end }}
{{- end }}
{{- if .Values.minecraftServer.spigetResources }}
- name: SPIGET_RESOURCES
value: {{ join "," .Values.minecraftServer.spigetResources }}
{{- end }}
- name: ONLINE_MODE
value: {{ .Values.minecraftServer.onlineMode | quote }}
- name: MEMORY
Expand Down
3 changes: 3 additions & 0 deletions charts/minecraft/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ minecraftServer:
# externalTrafficPolicy: Cluster
externalIPs:

# A list of Spigot resources/plugins IDs to download.
spigetResources: []

rcon:
# If you enable this, make SURE to change your password below.
enabled: false
Expand Down

0 comments on commit 30076e5

Please sign in to comment.