Skip to content
Open
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- `sourcebot.hostAliases` value for injecting entries into the pod's `/etc/hosts`. [131](https://github.com/sourcebot-dev/sourcebot-helm-chart/pull/131)

## [0.1.101] - 2026-08-13

### Changed
Expand Down
1 change: 1 addition & 0 deletions charts/sourcebot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Sourcebot is a self-hosted tool that helps you understand your codebase.
| sourcebot.envFrom | list | `[]` | Load environment variables from ConfigMaps and Secrets This is useful for injecting multiple environment variables from external secret management systems |
| 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.hostAliases | list | `[]` | Set host aliases to inject entries into the pod's /etc/hosts file See: https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/ |
| sourcebot.image.digest | string | `""` | Container image digest (used instead of tag if set) |
| sourcebot.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| sourcebot.image.pullSecrets | list | `[]` | Configure image pull secrets for private registries |
Expand Down
4 changes: 4 additions & 0 deletions charts/sourcebot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,7 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $.Values.sourcebot.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
14 changes: 14 additions & 0 deletions charts/sourcebot/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,20 @@
"tolerations": {
"type": "array"
},
"hostAliases": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ip": { "type": "string" },
"hostnames": {
"type": "array",
"items": { "type": "string" }
}
},
"required": ["ip"]
}
},
Comment thread
coderabbitai[bot] marked this conversation as resolved.
"affinity": {
"type": "object"
},
Expand Down
7 changes: 7 additions & 0 deletions charts/sourcebot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,13 @@ sourcebot:
# operator: Equal
# value: "value"

# -- Set host aliases to inject entries into the pod's /etc/hosts file
# See: https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/
hostAliases: []
# - ip: "10.0.0.10"
# hostnames:
# - "gitlab.internal.example.com"

# -- 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/
Expand Down