Add securityContext to stable/minecraft (#5678)

* Fix Minecraft SecurityContext

* Fix Minecraft SecurityContext

* fixed spacing for linter

* fixed spacing for linter

* spaces fix

* spaces fix

* fixed typo and syntax

* added ci test

* changed to securityContext

* changes per @unguiculus

* Update Chart.yaml

* fix test-values.yaml

* circleci fixes

* rebased and recommit
This commit is contained in:
Jon Owings
2018-08-23 07:34:22 -07:00
committed by k8s-ci-robot
parent 89fe5d61f2
commit 7e5f2f8685
4 changed files with 13 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
name: minecraft
version: 0.2.1
version: 0.2.2
appVersion: 1.12.2
home: https://minecraft.net/
description: Minecraft server
@@ -10,5 +10,5 @@ sources:
- https://hub.docker.com/r/itzg/minecraft-server/~/dockerfile/
- https://github.com/itzg/dockerfiles
maintainers:
- name: Greg Taylor
- name: gtaylor
email: gtaylor@gc-taylor.com
+3
View File
@@ -0,0 +1,3 @@
# This must be overridden, since we can't accept this for the user.
minecraftServer.eula: "TRUE"
#fix in place and rebased
@@ -14,6 +14,9 @@ spec:
labels:
app: {{ template "minecraft.fullname" . }}
spec:
securityContext:
runAsUser: {{ .Values.securityContext.runAsUser }}
fsGroup: {{ .Values.securityContext.fsGroup }}
containers:
- name: {{ template "minecraft.fullname" . }}
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
+5 -2
View File
@@ -10,13 +10,17 @@ resources:
memory: 512Mi
cpu: 500m
securityContext:
# Security context settings
runAsUser: 1000
fsGroup: 2000
# Most of these map to environment variables. See Minecraft for details:
# https://hub.docker.com/r/itzg/minecraft-server/
minecraftServer:
# This must be overridden, since we can't accept this for the user.
eula: "FALSE"
# One of: LATEST, SNAPSHOT, or a specific version (ie: "1.7.9").
version: "LATEST"
version: "1.12.2"
# One of: peaceful, easy, normal, and hard
difficulty: easy
# A comma-separated list of player names to whitelist.
@@ -72,7 +76,6 @@ minecraftServer:
# If you adjust this, you may need to adjust resources.requests above to match.
jvmOpts: "-Xmx512M -Xms512M"
serviceType: LoadBalancer
rcon:
# If you enable this, make SURE to change your password below.
enabled: false