You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/sourcegraph-executor/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,4 @@
5
5
6
6
* Added new chart `sourcegraph-executor-k8s` to deploy Sourcegraph executors that use Kubernetes jobs.
7
7
***BREAKING:** Renamed `sourcegraph-executor` chart to `sourcegraph-executor-dind` to indicate these are Docker in Docker executors. To update to newer versions of this chart, ensure the new Chart name is used.
8
+
-**BREAKING:** The `securityContext` field in the `sourcegraph-executor-k8s` chart is now deprecated. Use `containerSecurityContext` or `podSecurityContext` instead. The `privileged` field has been moved to `containerSecurityContext`. To update to newer versions of this chart, ensure the new fields are used and the deprecated `securityContext` field is removed.
Copy file name to clipboardExpand all lines: charts/sourcegraph-executor/k8s/README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ In addition to the documented values, the `executor` and `private-docker-registr
54
54
|-----|------|---------|-------------|
55
55
| executor.affinity | object |`{}`| Affinity, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)|
56
56
| executor.configureRbac | bool |`true`| Whether to configure the necessary RBAC resources. Required only once for all executor deployments. |
57
+
| executor.containerSecurityContext | object |`{"privileged":false}`| Security context for the container, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)|
57
58
| executor.debug.keepJobs | string |`"false"`| If true, Kubernetes jobs will not be deleted after they complete. Not recommended for production use as it can hit cluster limits. |
| executor.namespace | string |`"default"`| The namespace in which jobs are generated by the executor. |
88
89
| executor.nodeSelector | object |`{}`| NodeSelector, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector)|
90
+
| executor.podSecurityContext | object |`{}`| Security context for the pod, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)|
89
91
| executor.queueName | string |`""`| The name of the queue to pull jobs from to. Possible values: batches and codeintel. **Either this or queueNames is required.**|
90
92
| executor.queueNames | list |`[]`| The names of multiple queues to pull jobs from to. Possible values: batches and codeintel. **Either this or queueName is required.**|
| executor.securityContext | object |`{"fsGroup":null,"privileged":false,"runAsGroup":null,"runAsUser":null}`| The containerSecurityContext for the executor image |
98
+
| executor.securityContext | object |`{"fsGroup":null,"privileged":false,"runAsGroup":null,"runAsUser":null}`| DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead. |
99
+
| executor.securityContext.fsGroup | string |`nil`| DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead. |
100
+
| executor.securityContext.privileged | bool |`false`| DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead. |
101
+
| executor.securityContext.runAsGroup | string |`nil`| DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead. |
102
+
| executor.securityContext.runAsUser | string |`nil`| DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead. |
97
103
| executor.storageSize | string |`"10Gi"`| The storage size of the PVC attached to the executor deployment. |
98
104
| executor.tolerations | list |`[]`| Tolerations, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)|
99
105
| sourcegraph.affinity | object |`{}`| Affinity, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity)|
Copy file name to clipboardExpand all lines: charts/sourcegraph-executor/k8s/values.yaml
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -101,15 +101,15 @@ executor:
101
101
namespace: "default"
102
102
# -- The path to the kubeconfig file. If not specified, the in-cluster config is used.
103
103
kubeconfigPath: ""
104
-
# -- The containerSecurityContext for the executor image
104
+
# -- DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead.
105
105
securityContext:
106
-
#@default -- nil; accepts [0, 2147483647]
106
+
# -- DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead.
107
107
runAsUser:
108
-
#@default -- nil; accepts [0, 2147483647]
108
+
# -- DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead.
109
109
runAsGroup:
110
-
#@default -- nil; accepts [0, 2147483647]
110
+
# -- DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead.
111
111
fsGroup:
112
-
#@default -- false; accepts [true, false]
112
+
# -- DEPRECATED: Use `executor.containerSecurityContext` or `executor.podSecurityContext` instead.
113
113
privileged: false
114
114
115
115
kubernetesJob:
@@ -177,3 +177,11 @@ executor:
177
177
178
178
# -- For local deployments the host is 'host.docker.internal' and this needs to be true
179
179
dockerAddHostGateway: "false"
180
+
181
+
# -- Security context for the container,
182
+
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container)
183
+
containerSecurityContext:
184
+
privileged: false
185
+
# -- Security context for the pod,
186
+
# learn more from the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod)
0 commit comments