feat(code-server): enable persistence and disable password (#1483)

* feat(code-server): enable persistence and allow both password and no-password setups

* more fixes

* test something

* allow privilage escalation

* reverse

* just dont use password for codeserver (folks should use authelia)

* fix securityContext

* lint

* rorfs
This commit is contained in:
Kjeld Schouten-Lebbing
2021-12-07 13:58:50 +01:00
committed by GitHub
parent ebdfadcbcb
commit 097783bc24
3 changed files with 14 additions and 20 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ name: code-server
sources:
- https://github.com/cdr/code-server
type: application
version: 2.0.20
version: 2.1.0
annotations:
truecharts.org/catagories: |
- media
+4 -4
View File
@@ -183,9 +183,9 @@ questions:
schema:
type: dict
attrs:
- variable: data
label: "App Data Storage"
description: "Stores the Application Data."
- variable: config
label: "App Config Storage"
description: "Stores the Application Config."
schema:
type: dict
attrs:
@@ -224,7 +224,7 @@ questions:
description: "Path inside the container the storage is mounted"
schema:
type: string
default: "/home/coder"
default: "/config"
hidden: true
valid_chars: '^\/([a-zA-Z0-9._-]+(\s?[a-zA-Z0-9._-]+|\/?))+$'
- variable: medium
+9 -15
View File
@@ -3,22 +3,18 @@ image:
pullPolicy: IfNotPresent
tag: v3.12.0@sha256:2853a8bdd8eed9c09bcd4b100b9d4be20c42a307b9d1cbae1a204276e948f9ce
# PASSWORD: password
# SUDO_PASSWORD: password
# HASHED_PASSWORD
args:
- --user-data-dir
- "/config/.vscode"
- --auth
- none
env:
PUID: 568
DOCKER_USER: "$USER"
env: {}
# PROXY_DOMAIN: code-server.my.domain
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
podSecurityContext:
runAsUser: 0
runAsGroup: 0
allowPrivilegeEscalation: true
service:
main:
@@ -28,8 +24,6 @@ service:
targetPort: 8080
persistence:
data:
enabled: true
mountPath: "/home/coder"
varrun:
config:
enabled: true
mountPath: "/config"