From 4905118e54f5616b114149000ba935b6a598430c Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Mon, 4 Apr 2022 22:11:22 +0200 Subject: [PATCH] fix(code-server): correctly set the run-as-root things (#2425) * Update values.yaml * Update questions.yaml * Update Chart.yaml --- charts/stable/code-server/Chart.yaml | 2 +- charts/stable/code-server/questions.yaml | 4 ++-- charts/stable/code-server/values.yaml | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/charts/stable/code-server/Chart.yaml b/charts/stable/code-server/Chart.yaml index 70b7fb66efc..fb292412315 100644 --- a/charts/stable/code-server/Chart.yaml +++ b/charts/stable/code-server/Chart.yaml @@ -21,7 +21,7 @@ name: code-server sources: - https://github.com/cdr/code-server type: application -version: 3.0.11 +version: 3.0.12 annotations: truecharts.org/catagories: | - media diff --git a/charts/stable/code-server/questions.yaml b/charts/stable/code-server/questions.yaml index 4e9503865a0..67e038275c7 100644 --- a/charts/stable/code-server/questions.yaml +++ b/charts/stable/code-server/questions.yaml @@ -279,12 +279,12 @@ questions: label: "Allow Privilege Escalation" schema: type: boolean - default: false + default: true - variable: runAsNonRoot label: "runAsNonRoot" schema: type: boolean - default: false + default: true # Include{securityContextAdvanced} - variable: podSecurityContext diff --git a/charts/stable/code-server/values.yaml b/charts/stable/code-server/values.yaml index a61846e1274..4b73bc242d8 100644 --- a/charts/stable/code-server/values.yaml +++ b/charts/stable/code-server/values.yaml @@ -15,6 +15,11 @@ env: {} securityContext: readOnlyRootFilesystem: false allowPrivilegeEscalation: true + runAsNonRoot: false + +podSecurityContext: + runAsUser: 0 + runAsGroup: 0 service: main: