Skip to content

Commit 34abae4

Browse files
Merge pull request #7 from sourcebot-dev/bkellam/envFrom
Add `sourcebot.envFrom` field
2 parents d52eec0 + 40c1ca0 commit 34abae4

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

charts/sourcebot/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
type: application
33
name: sourcebot
44
version: 0.1.3
5-
appVersion: v4.8.1
5+
appVersion: v4.8.2
66
description: Sourcebot is a self-hosted tool that helps you understand your codebase.
77
icon: https://raw.githubusercontent.com/sourcebot-dev/sourcebot/ebf6721836b8f878d42bb8c1e844bdc7867a74fe/packages/web/public/logo_512.png
88
keywords:

charts/sourcebot/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sourcebot
22

3-
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.8.1](https://img.shields.io/badge/AppVersion-v4.8.1-informational?style=flat-square)
3+
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.8.2](https://img.shields.io/badge/AppVersion-v4.8.2-informational?style=flat-square)
44

55
Sourcebot is a self-hosted tool that helps you understand your codebase.
66

@@ -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)