Skip to content

Commit

Permalink
minecraft-server: fix extraVolumes
Browse files Browse the repository at this point in the history
  • Loading branch information
0SkillAllLuck committed Aug 11, 2021
1 parent eb44fd1 commit d62248c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
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.801
version: 0.1.802
appVersion: v0.1.8
description: Docker Minecraft Server image with support for Plugins etc.
home: https://github.com/qumine/minecraft-server
Expand Down
13 changes: 11 additions & 2 deletions charts/minecraft-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ spec:
- name: data
mountPath: /data
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 10 }}
{{- toYaml .Values.extraVolumeMounts | nindent 8 }}
{{- end }}
{{- if .Values.integrations.bluemap.enabled }}
- name: bluemap
Expand All @@ -141,6 +141,9 @@ spec:
volumeMounts:
- name: data
mountPath: /data
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 8 }}
{{- end }}
{{- end }}
{{- if .Values.integrations.geysermc.enabled }}
- name: geysermc
Expand All @@ -157,6 +160,12 @@ spec:
requests:
cpu: 250m
memory: 250Mi
volumeMounts:
- name: data
mountPath: /data
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 8 }}
{{- end }}
{{- end }}
volumes:
- name: data
Expand All @@ -172,5 +181,5 @@ spec:
{{- end }}
{{- if .Values.extraVolumes }}
# Extra volume(s)
{{- toYaml .Values.extraVolumes | nindent 8 }}
{{- toYaml .Values.extraVolumes | nindent 6 }}
{{- end }}
11 changes: 6 additions & 5 deletions charts/minecraft-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,12 @@ startupProbe:
periodSeconds: 5
failureThreshold: 24

## Configure extra volumes
extraVolumes: []

## Configure extra volumeMounts
extraVolumeMounts: []
extraVolumeMounts:
- name: tmp
mountPath: /tmp
extraVolumes:
- name: tmp
emptyDir: {}

## Containers, which are run before the app containers are started.
extraInitContainers: []
Expand Down

0 comments on commit d62248c

Please sign in to comment.