Run as PUID/PGID by default and add startAsRoot option (#246)

This commit is contained in:
Kjeld Schouten-Lebbing 2021-03-08 14:32:58 +01:00 committed by kjeld Schouten-Lebbing
parent 048161293c
commit 4e6ceee3cb
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
104 changed files with 182 additions and 99 deletions

2
.gitignore vendored
View File

@ -41,5 +41,5 @@ tests/test-report.txt
tests/test-report.xml
private_values.yaml
temp/
library/common-test/charts/*
library/common-test/charts/
Chart.lock

View File

@ -38,6 +38,19 @@ class Test < ChartTest
end
end
describe 'startAsRoot' do
it 'defaults to false = runAs 568' do
jq('.spec.template.spec.securityContext.runAsUser', resource('Deployment')).must_equal 568
jq('.spec.template.spec.securityContext.runAsGroup', resource('Deployment')).must_equal 568
end
it 'can be enabled = runAs nil' do
chart.value startAsRoot: true
jq('.spec.template.spec.securityContext.runAsUser', resource('Deployment')).must_equal nil
jq('.spec.template.spec.securityContext.runAsGroup', resource('Deployment')).must_equal nil
end
end
describe 'hostNetwork' do
it ' hostnetworking default = nil' do
jq('.spec.template.spec.hostNetwork', resource('Deployment')).must_equal nil

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-v0.9.0.5
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-0.6.9
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
tag: 6.4.6.2
pullPolicy: IfNotPresent
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -6,6 +6,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
type: NodePort

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: latest
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: 1.15.3
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -12,7 +12,6 @@ services:
main:
port:
port: 6052
nodePort: 30052
env: {}
# ESPHOME_DASHBOARD_USE_PING: true

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-1.17.0
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
tag: version-v2.7.1
pullPolicy: IfNotPresent
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
tag: v1.23.1
pullPolicy: IfNotPresent
startAsRoot: true
#All values here are set as the docker defaults.
envTpl:
# Permissions Settings

View File

@ -6,10 +6,12 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:
port: 5800 #Required for web GUI
port: 5800 #Required for web GUI
vnc:
enabled: true
type: ClusterIP
@ -23,6 +25,7 @@ envTpl:
# Permissions Settings
USER_ID: "{{ .Values.PUID }}"
GROUP_ID: "{{ .Values.PGID }}"
env:
# General Settings
KEEP_APP_RUNNING: "0"

View File

@ -9,6 +9,8 @@ image:
tag: version-2.2.2
pullPolicy: IfNotPresent
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: 2021.1.5
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,8 +8,10 @@ image:
strategy:
type: Recreate
startAsRoot: true
env: {}
# TZ:
# TZ:
services:
main:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-v0.17.153
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-10.6.4-1
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -9,6 +9,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -7,7 +7,7 @@ version: 1.6.4
version: 2.0.0
>>>>>>> [Common] Refactor Services (#212):charts/kms/2.0.0/Chart.yaml
# upstream_version:
appVersion: "auto"
appVersion: "minimal"
description: Private Windows Activation Server for development and testing
type: application
deprecated: false

View File

@ -7,7 +7,9 @@
image:
repository: pykmsorg/py-kms
pullPolicy: IfNotPresent
tag: latest
tag: minimal
startAsRoot: true
##
# Most other defaults are set in questions.yaml

View File

@ -176,70 +176,6 @@ questions:
## TrueCharts Specific
- variable: appVolumeMounts
label: "app storage"
group: "Storage and Devices"
schema:
type: dict
attrs:
# Config ------------------------
- variable: config
label: "config dataset"
schema:
type: dict
$ref:
- "normalize/ixVolume"
attrs:
- variable: enabled
label: "Enabled"
schema:
type: boolean
default: true
required: true
hidden: true
editable: false
- variable: setPermissions
label: "Automatic Permissions"
description: "Automatically set permissions on install"
schema:
type: boolean
default: true
hidden: false
- variable: emptyDir
label: "emptyDir"
schema:
type: boolean
default: false
hidden: true
editable: false
- variable: datasetName
label: "Dataset Name"
schema:
type: string
default: "config"
required: true
editable: false
- variable: mountPath
label: "Mount Path"
description: "Path to mount inside the pod"
schema:
type: path
required: true
default: "/config"
editable: false
- variable: hostPathEnabled
label: "host Path Enabled"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostPath
label: "Host Path"
schema:
type: hostpath
required: true
- variable: additionalAppVolumeMounts
label: "Custom app storage"
group: "Storage and Devices"

View File

@ -3,34 +3,14 @@
image:
repository: pykmsorg/py-kms
pullPolicy: IfNotPresent
tag: latest
tag: minimal
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:
port: 1688
env: {}
# TZ: UTC
# PUID: 1001
# PGID: 1001
persistence:
config:
enabled: false
emptyDir: false
## TrueCharts Values
appVolumeMounts:
config:
enabled: true
emptyDir: true
setPermissions: true
mountPath: "/config"

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: latest
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -8,6 +8,9 @@ image:
repository: linuxserver/lidarr
pullPolicy: IfNotPresent
tag: version-0.8.0.1886
startAsRoot: true
probes:
liveness:
enabled: true

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: v4.0.8
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -38,4 +38,4 @@ appVolumeMounts:
enabled: true
emptyDir: true
setPermissions: true
mountPath: "/config"
mountPath: "/data"

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-v21.0
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-v3.8.1
startAsRoot: true
probes:
liveness:
custom: true

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-v4.0.681
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -9,6 +9,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: Always
tag: latest
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -9,6 +9,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: latest
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,8 +8,10 @@ image:
strategy:
type: Recreate
startAsRoot: true
env: {}
# TZ: UTC
# TZ: UTC
# PUID: 1001
# PGID: 1001
# UMASK: 022

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-3.0.0.3989
startAsRoot: true
probes:
liveness:
enabled: true

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: nightly
startAsRoot: true
probes:
liveness:
enabled: true

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-3.1.0
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-3.0.4.993
startAsRoot: true
probes:
liveness:
enabled: true

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: v2.6.6
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: version-3.00-r2
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: 1.3.2
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
services:
main:
port:
@ -40,9 +42,6 @@ persistence:
## TrueCharts Config
appVolumeMounts:
data:
enabled: true

View File

@ -9,6 +9,8 @@ image:
pullPolicy: IfNotPresent
tag: latest
startAsRoot: true
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,8 @@ image:
strategy:
type: Recreate
startAsRoot: true
# See https://github.com/linuxserver/docker-tvheadend#parameters
env: {}
# PUID: 1000

View File

@ -9,6 +9,13 @@ image:
tag: 6.0.45
pullPolicy: IfNotPresent
startAsRoot: true
envTpl:
# Permissions Settings
UNIFI_GID: "{{ .Values.PUID }}"
UNIFI_UID: "{{ .Values.PGID }}"
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart

View File

@ -8,6 +8,13 @@ image:
strategy:
type: Recreate
startAsRoot: true
envTpl:
# Permissions Settings
UNIFI_GID: "{{ .Values.PUID }}"
UNIFI_UID: "{{ .Values.PGID }}"
services:
main:
port:

Some files were not shown because too many files have changed in this diff Show More