fix(minecraft-java): Fix variable type in questions and add UID variable (#1974)
* fix(minecraft-java): Fix variable type in questions and add UID variable * runas root * rofs * use PUID
This commit is contained in:
@@ -20,7 +20,7 @@ sources:
|
|||||||
- https://github.com/itzg/docker-minecraft-server
|
- https://github.com/itzg/docker-minecraft-server
|
||||||
- https://hub.docker.com/r/itzg/minecraft-server
|
- https://hub.docker.com/r/itzg/minecraft-server
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.12
|
version: 0.0.13
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- games
|
- games
|
||||||
|
|||||||
@@ -101,6 +101,12 @@ questions:
|
|||||||
type: dict
|
type: dict
|
||||||
attrs:
|
attrs:
|
||||||
# Include{fixedEnv}
|
# Include{fixedEnv}
|
||||||
|
- variable: PUID
|
||||||
|
label: "PUID"
|
||||||
|
description: "Sets the PUID env var"
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 568
|
||||||
- variable: EULA
|
- variable: EULA
|
||||||
label: "Minecraft Eula - Link in readme sources"
|
label: "Minecraft Eula - Link in readme sources"
|
||||||
schema:
|
schema:
|
||||||
@@ -227,9 +233,9 @@ questions:
|
|||||||
- variable: PAPER_DOWNLOAD_URL
|
- variable: PAPER_DOWNLOAD_URL
|
||||||
label: "Paper Download URL"
|
label: "Paper Download URL"
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: 0
|
default: ""
|
||||||
show_if: [[TYPE, "=", "PAPER"]]
|
show_if: [[TYPE, "=", "PAPER"]]
|
||||||
- variable: PACKWIZ_URL
|
- variable: PACKWIZ_URL
|
||||||
label: "Packwiz URL"
|
label: "Packwiz URL"
|
||||||
@@ -739,7 +745,7 @@ questions:
|
|||||||
label: "runAsNonRoot"
|
label: "runAsNonRoot"
|
||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: false
|
||||||
# Include{securityContextAdvanced}
|
# Include{securityContextAdvanced}
|
||||||
|
|
||||||
- variable: podSecurityContext
|
- variable: podSecurityContext
|
||||||
@@ -754,13 +760,13 @@ questions:
|
|||||||
description: "The UserID of the user running the application"
|
description: "The UserID of the user running the application"
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 568
|
default: 0
|
||||||
- variable: runAsGroup
|
- variable: runAsGroup
|
||||||
label: "runAsGroup"
|
label: "runAsGroup"
|
||||||
description: The groupID this App of the user running the application"
|
description: The groupID this App of the user running the application"
|
||||||
schema:
|
schema:
|
||||||
type: int
|
type: int
|
||||||
default: 568
|
default: 0
|
||||||
- variable: fsGroup
|
- variable: fsGroup
|
||||||
label: "fsGroup"
|
label: "fsGroup"
|
||||||
description: "The group that should own ALL storage."
|
description: "The group that should own ALL storage."
|
||||||
|
|||||||
@@ -22,7 +22,17 @@ j8j9Image:
|
|||||||
portal:
|
portal:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
runAsNonRoot: false
|
||||||
|
|
||||||
|
podSecurityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
PUID: 568
|
||||||
|
UID: "{{ .Values.env.PUID }}"
|
||||||
EULA: "TRUE"
|
EULA: "TRUE"
|
||||||
VERSION: "LATEST"
|
VERSION: "LATEST"
|
||||||
TYPE: "VANILLA"
|
TYPE: "VANILLA"
|
||||||
|
|||||||
Reference in New Issue
Block a user