Skip to content

Commit

Permalink
feat: add runAsUser and runAsGroup to executor
Browse files Browse the repository at this point in the history
  • Loading branch information
Chickensoupwithrice committed Feb 3, 2025
1 parent 8a0dc9f commit 95d7174
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ spec:
spec:
securityContext:
fsGroup: {{ .Values.executor.kubernetesJob.fsGroup }}
runAsUser: {{ .Values.executor.securityContext.runAsUser }}
runAsGroup: {{ .Values.executor.securityContext.runAsGroup }}
serviceAccountName: sg-executor
containers:
- name: executor
Expand Down
6 changes: 6 additions & 0 deletions charts/sourcegraph-executor/k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ executor:
namespace: "default"
# -- The path to the kubeconfig file. If not specified, the in-cluster config is used.
kubeconfigPath: ""
# -- The containerSecurityContext for the executor image
containerSecurityContext:
# @default -- `100`; accepts [0, 2147483647]
runAsUser: 100
# @default -- `101`; accepts [0, 2147483647]
runAsGroup: 101

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

0 comments on commit 95d7174

Please sign in to comment.