Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ jobs:
git diff
exit 1
fi

2 changes: 1 addition & 1 deletion charts/sourcebot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ Sourcebot is a self-hosted tool that helps you understand your codebase.
| redis.image.repository | string | `"bitnamilegacy/valkey"` | Overwrite default repository of helm chart to point to non-paid bitnami images |
| redis.port | int | `6379` | Redis port |
| sourcebot.additionalEnv | list | `[]` | Set additional environment variables |
| sourcebot.additionalEnvSecrets | list | `[]` | Set environment variables from Kubernetes secrets |
| sourcebot.additionalLabels | object | `{}` | Add extra labels to all resources |
| sourcebot.additionalPorts | list | `[]` | Configure additional ports to expose on the container and service |
| 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/ |
| sourcebot.args | list | `[]` | Override the default arguments of the container |
| sourcebot.command | list | `[]` | Override the default command of the container |
| sourcebot.config | object | `{"$schema":"https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json","connections":{},"settings":{}}` | Configure Sourcebot-specific application settings |
| sourcebot.containerSecurityContext | object | `{}` | Set the container-level security context |
| sourcebot.envSecrets | list | `[]` | Set environment variables from Kubernetes secrets |
| sourcebot.extraVolumeMounts | list | `[]` | Define volume mounts for the container See: https://kubernetes.io/docs/concepts/storage/volumes/ |
| sourcebot.extraVolumes | list | `[]` | Define additional volumes See: https://kubernetes.io/docs/concepts/storage/volumes/ |
| sourcebot.image.digest | string | `""` | Container image digest (used instead of tag if set) |
Expand Down
2 changes: 1 addition & 1 deletion charts/sourcebot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
{{- end }}
{{- include "sourcebot.databaseEnv" . | nindent 12 }}
{{- include "sourcebot.redisEnv" . | nindent 12 }}
{{- range $.Values.sourcebot.envSecrets }}
{{- range $.Values.sourcebot.additionalEnvSecrets }}
- name: {{ .envName }}
valueFrom:
secretKeyRef:
Expand Down
21 changes: 19 additions & 2 deletions charts/sourcebot/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"properties": {
"global": {
"type": "object",
"additionalProperties": false,
"properties": {
"security": {
"type": "object",
Expand All @@ -25,6 +26,7 @@
},
"sourcebot": {
"type": "object",
"additionalProperties": false,
"properties": {
"replicaCount": {
"type": "integer",
Expand Down Expand Up @@ -60,8 +62,23 @@
"license": {
"type": "object"
},
"envSecrets": {
"type": "array"
"additionalEnvSecrets": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"envName": {
"type": "string"
},
"secretName": {
"type": "string"
},
"secretKey": {
"type": "string"
}
}
}
},
"additionalEnv": {
"type": "array"
Expand Down
2 changes: 1 addition & 1 deletion charts/sourcebot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sourcebot:
existingSecretKey: key

# -- Set environment variables from Kubernetes secrets
envSecrets: []
additionalEnvSecrets: []
# - secretName: sourcebot-github-token
# secretKey: token
# envName: GITHUB_TOKEN
Expand Down