Skip to content

Commit

Permalink
fix: change values names, add fsGroup and privileged
Browse files Browse the repository at this point in the history
  • Loading branch information
Chickensoupwithrice committed Feb 11, 2025
1 parent 95d7174 commit 92e614f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,16 @@ spec:
{{- include "executor.labels" . | nindent 8 }}
spec:
securityContext:
fsGroup: {{ .Values.executor.kubernetesJob.fsGroup }}
fsGroup: {{ .Values.executor.securityContext.fsGroup }}
runAsUser: {{ .Values.executor.securityContext.runAsUser }}
runAsGroup: {{ .Values.executor.securityContext.runAsGroup }}
serviceAccountName: sg-executor
containers:
- name: executor
image: {{ include "sourcegraph.image" (list . "executor") }}
imagePullPolicy: {{ .Values.sourcegraph.image.pullPolicy }}
securityContext:
privileged: {{ .Values.executor.securityContext.privileged }}
ports:
- containerPort: 6060
name: debug
Expand Down
14 changes: 9 additions & 5 deletions charts/sourcegraph-executor/k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,15 @@ executor:
# -- 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
securityContext:
# @default -- nil; accepts [0, 2147483647]
runAsUser:
# @default -- nil; accepts [0, 2147483647]
runAsGroup:
# @default -- nil; accepts [0, 2147483647]
fsGroup:
# @default -- false; accepts [true, false]
privileged: false

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

0 comments on commit 92e614f

Please sign in to comment.