Skip to content

Commit 8c750b5

Browse files
committed
feat(helm): add global settings for commonly used values
1 parent 8a0dc9f commit 8c750b5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

charts/sourcegraph/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ In addition to the documented values, all services also support the following va
308308
| searcher.serviceAccount.name | string | `""` | Name of the ServiceAccount to be created or an existing ServiceAccount |
309309
| searcher.storageSize | string | `"26Gi"` | Size of the PVC for searcher pods to store cache data |
310310
| sourcegraph.affinity | object | `{}` | Global Affinity, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity) |
311+
| sourcegraph.containerSecurityContext | object | `{}` | Global container security context settings that can be overridden per service Used to set security parameters like runAsUser, privileged mode, etc. |
311312
| sourcegraph.image.defaultTag | string | `"{{ .Chart.AppVersion }}"` | Global docker image tag |
312313
| sourcegraph.image.pullPolicy | string | `"IfNotPresent"` | Global docker image pull policy |
313314
| sourcegraph.image.repository | string | `"index.docker.io/sourcegraph"` | Global docker image registry or prefix |
@@ -319,7 +320,10 @@ In addition to the documented values, all services also support the following va
319320
| sourcegraph.nodeSelector | object | `{}` | Global NodeSelector, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) |
320321
| sourcegraph.podAnnotations | object | `{}` | Add extra annotations to attach to all pods |
321322
| sourcegraph.podLabels | object | `{}` | Add extra labels to attach to all pods |
323+
| sourcegraph.podSecurityContext | object | `{}` | Global pod security context settings that can be overridden per service Controls pod-level security attributes like fsGroup and runAsUser |
324+
| sourcegraph.privileged | object | `{}` | Global privileged mode settings that can be overridden per service Determines if pods/containers can run with elevated privileges |
322325
| sourcegraph.revisionHistoryLimit | int | `10` | Global deployment clean up policy, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy) |
326+
| sourcegraph.serviceAccount | object | `{"create":false}` | Global service account creation settings that can be overridden per service Controls whether service accounts should be automatically created |
323327
| sourcegraph.serviceLabels | object | `{}` | Add extra labels to all services |
324328
| sourcegraph.tolerations | list | `[]` | Global Tolerations, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) |
325329
| storageClass.allowedTopologies | list | `[]` | Persistent volumes topology configuration, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/storage/storage-classes/#allowed-topologies) |

charts/sourcegraph/values.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ sourcegraph:
3838
revisionHistoryLimit: 10
3939
# -- Add extra labels to all services
4040
serviceLabels: {}
41+
# -- Global container security context settings that can be overridden per service
42+
# Used to set security parameters like runAsUser, privileged mode, etc.
43+
containerSecurityContext: {}
44+
# -- Global pod security context settings that can be overridden per service
45+
# Controls pod-level security attributes like fsGroup and runAsUser
46+
podSecurityContext: {}
47+
# -- Global privileged mode settings that can be overridden per service
48+
# Determines if pods/containers can run with elevated privileges
49+
privileged: {}
50+
# -- Global service account creation settings that can be overridden per service
51+
# Controls whether service accounts should be automatically created
52+
serviceAccount:
53+
create: false
4154

4255
# Generic application configuration options, used by most applications below
4356
# app: # Generally matches directory name

0 commit comments

Comments
 (0)