Skip to content

Commit

Permalink
feat(helm): add global settings for commonly used values
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpleiness committed Feb 4, 2025
1 parent 8a0dc9f commit bd175ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/sourcegraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ In addition to the documented values, all services also support the following va
| searcher.serviceAccount.create | bool | `false` | Enable creation of ServiceAccount for `searcher` |
| searcher.serviceAccount.name | string | `""` | Name of the ServiceAccount to be created or an existing ServiceAccount |
| searcher.storageSize | string | `"26Gi"` | Size of the PVC for searcher pods to store cache data |
| sourcegraph."serviceAccount.create" | object | `{}` | Global service account creation settings that can be overridden per service Controls whether service accounts should be automatically created |
| 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) |
| sourcegraph.containerSecurityContext | object | `{}` | Global container security context settings that can be overridden per service Used to set security parameters like runAsUser, privileged mode, etc. |
| sourcegraph.image.defaultTag | string | `"{{ .Chart.AppVersion }}"` | Global docker image tag |
| sourcegraph.image.pullPolicy | string | `"IfNotPresent"` | Global docker image pull policy |
| sourcegraph.image.repository | string | `"index.docker.io/sourcegraph"` | Global docker image registry or prefix |
Expand All @@ -319,6 +321,8 @@ In addition to the documented values, all services also support the following va
| sourcegraph.nodeSelector | object | `{}` | Global NodeSelector, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) |
| sourcegraph.podAnnotations | object | `{}` | Add extra annotations to attach to all pods |
| sourcegraph.podLabels | object | `{}` | Add extra labels to attach to all pods |
| sourcegraph.podSecurityContext | object | `{}` | Global pod security context settings that can be overridden per service Controls pod-level security attributes like fsGroup and runAsUser |
| sourcegraph.privileged | object | `{}` | Global privileged mode settings that can be overridden per service Determines if pods/containers can run with elevated privileges |
| 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) |
| sourcegraph.serviceLabels | object | `{}` | Add extra labels to all services |
| sourcegraph.tolerations | list | `[]` | Global Tolerations, learn more from the [Kubernetes documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) |
Expand Down
12 changes: 12 additions & 0 deletions charts/sourcegraph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ sourcegraph:
revisionHistoryLimit: 10
# -- Add extra labels to all services
serviceLabels: {}
# -- Global container security context settings that can be overridden per service
# Used to set security parameters like runAsUser, privileged mode, etc.
containerSecurityContext: {}
# -- Global pod security context settings that can be overridden per service
# Controls pod-level security attributes like fsGroup and runAsUser
podSecurityContext: {}
# -- Global privileged mode settings that can be overridden per service
# Determines if pods/containers can run with elevated privileges
privileged: {}
# -- Global service account creation settings that can be overridden per service
# Controls whether service accounts should be automatically created
serviceAccount.create: {}

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

0 comments on commit bd175ff

Please sign in to comment.