Skip to content

Commit f9dbaf7

Browse files
Merge pull request #3 from sourcebot-dev/bkellam/rename_envSecrets
2 parents 6bcf240 + 8f30f58 commit f9dbaf7

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

.github/workflows/validate.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ jobs:
4343
git diff
4444
exit 1
4545
fi
46-

charts/sourcebot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ Sourcebot is a self-hosted tool that helps you understand your codebase.
4747
| redis.image.repository | string | `"bitnamilegacy/valkey"` | Overwrite default repository of helm chart to point to non-paid bitnami images |
4848
| redis.port | int | `6379` | Redis port |
4949
| sourcebot.additionalEnv | list | `[]` | Set additional environment variables |
50+
| sourcebot.additionalEnvSecrets | list | `[]` | Set environment variables from Kubernetes secrets |
5051
| sourcebot.additionalLabels | object | `{}` | Add extra labels to all resources |
5152
| sourcebot.additionalPorts | list | `[]` | Configure additional ports to expose on the container and service |
5253
| sourcebot.affinity | object | `{}` | Set affinity rules for pod scheduling Defaults to soft anti-affinity if not set See: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ |
5354
| sourcebot.args | list | `[]` | Override the default arguments of the container |
5455
| sourcebot.command | list | `[]` | Override the default command of the container |
5556
| sourcebot.config | object | `{"$schema":"https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json","connections":{},"settings":{}}` | Configure Sourcebot-specific application settings |
5657
| sourcebot.containerSecurityContext | object | `{}` | Set the container-level security context |
57-
| sourcebot.envSecrets | list | `[]` | Set environment variables from Kubernetes secrets |
5858
| sourcebot.extraVolumeMounts | list | `[]` | Define volume mounts for the container See: https://kubernetes.io/docs/concepts/storage/volumes/ |
5959
| sourcebot.extraVolumes | list | `[]` | Define additional volumes See: https://kubernetes.io/docs/concepts/storage/volumes/ |
6060
| sourcebot.image.digest | string | `""` | Container image digest (used instead of tag if set) |

charts/sourcebot/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ spec:
6262
{{- end }}
6363
{{- include "sourcebot.databaseEnv" . | nindent 12 }}
6464
{{- include "sourcebot.redisEnv" . | nindent 12 }}
65-
{{- range $.Values.sourcebot.envSecrets }}
65+
{{- range $.Values.sourcebot.additionalEnvSecrets }}
6666
- name: {{ .envName }}
6767
valueFrom:
6868
secretKeyRef:

charts/sourcebot/values.schema.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"properties": {
77
"global": {
88
"type": "object",
9+
"additionalProperties": false,
910
"properties": {
1011
"security": {
1112
"type": "object",
@@ -25,6 +26,7 @@
2526
},
2627
"sourcebot": {
2728
"type": "object",
29+
"additionalProperties": false,
2830
"properties": {
2931
"replicaCount": {
3032
"type": "integer",
@@ -60,8 +62,23 @@
6062
"license": {
6163
"type": "object"
6264
},
63-
"envSecrets": {
64-
"type": "array"
65+
"additionalEnvSecrets": {
66+
"type": "array",
67+
"items": {
68+
"type": "object",
69+
"additionalProperties": false,
70+
"properties": {
71+
"envName": {
72+
"type": "string"
73+
},
74+
"secretName": {
75+
"type": "string"
76+
},
77+
"secretKey": {
78+
"type": "string"
79+
}
80+
}
81+
}
6582
},
6683
"additionalEnv": {
6784
"type": "array"

charts/sourcebot/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sourcebot:
4545
existingSecretKey: key
4646

4747
# -- Set environment variables from Kubernetes secrets
48-
envSecrets: []
48+
additionalEnvSecrets: []
4949
# - secretName: sourcebot-github-token
5050
# secretKey: token
5151
# envName: GITHUB_TOKEN

0 commit comments

Comments
 (0)