Skip to content

Commit 95d7174

Browse files
feat: add runAsUser and runAsGroup to executor
1 parent 8a0dc9f commit 95d7174

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/sourcegraph-executor/k8s/templates/executor.Deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ spec:
4545
spec:
4646
securityContext:
4747
fsGroup: {{ .Values.executor.kubernetesJob.fsGroup }}
48+
runAsUser: {{ .Values.executor.securityContext.runAsUser }}
49+
runAsGroup: {{ .Values.executor.securityContext.runAsGroup }}
4850
serviceAccountName: sg-executor
4951
containers:
5052
- name: executor

charts/sourcegraph-executor/k8s/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ executor:
9090
namespace: "default"
9191
# -- The path to the kubeconfig file. If not specified, the in-cluster config is used.
9292
kubeconfigPath: ""
93+
# -- The containerSecurityContext for the executor image
94+
containerSecurityContext:
95+
# @default -- `100`; accepts [0, 2147483647]
96+
runAsUser: 100
97+
# @default -- `101`; accepts [0, 2147483647]
98+
runAsGroup: 101
9399

94100
kubernetesJob:
95101
# -- The number of seconds after which a Kubernetes job will be terminated.

0 commit comments

Comments
 (0)