Skip to content

Commit 9cf6e58

Browse files
Add envFrom
1 parent d52eec0 commit 9cf6e58

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

charts/sourcebot/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Sourcebot is a self-hosted tool that helps you understand your codebase.
5555
| sourcebot.command | list | `[]` | Override the default command of the container |
5656
| sourcebot.config | object | `{"$schema":"https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json","connections":{},"settings":{}}` | Configure Sourcebot-specific application settings |
5757
| sourcebot.containerSecurityContext | object | `{}` | Set the container-level security context |
58+
| sourcebot.envFrom | list | `[]` | Load environment variables from ConfigMaps and Secrets This is useful for injecting multiple environment variables from external secret management systems |
5859
| sourcebot.extraVolumeMounts | list | `[]` | Define volume mounts for the container See: https://kubernetes.io/docs/concepts/storage/volumes/ |
5960
| sourcebot.extraVolumes | list | `[]` | Define additional volumes See: https://kubernetes.io/docs/concepts/storage/volumes/ |
6061
| sourcebot.image.digest | string | `""` | Container image digest (used instead of tag if set) |

charts/sourcebot/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ spec:
4747
{{- with $.Values.sourcebot.args }}
4848
args: {{ toYaml . | nindent 12 }}
4949
{{- end }}
50+
{{- with $.Values.sourcebot.envFrom }}
51+
envFrom:
52+
{{- toYaml . | nindent 12 }}
53+
{{- end }}
5054
env:
5155
{{- if and $.Values.sourcebot.ingress.enabled (gt (len $.Values.sourcebot.ingress.hosts) 0) }}
5256
- name: AUTH_URL

charts/sourcebot/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@
8383
"additionalEnv": {
8484
"type": "array"
8585
},
86+
"envFrom": {
87+
"type": "array"
88+
},
8689
"config": {
8790
"type": "object"
8891
},

charts/sourcebot/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ sourcebot:
5555
# - name: SOURCEBOT_TELEMETRY_DISABLED
5656
# value: "1"
5757

58+
# -- Load environment variables from ConfigMaps and Secrets
59+
# This is useful for injecting multiple environment variables from external secret management systems
60+
envFrom: []
61+
# - secretRef:
62+
# name: sourcebot-secrets
63+
# - configMapRef:
64+
# name: sourcebot-config
65+
5866
# -- Configure Sourcebot-specific application settings
5967
config:
6068
# Schema version of the Sourcebot configuration

0 commit comments

Comments
 (0)