Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- `sourcebot.lifecycle` and `sourcebot.terminationGracePeriodSeconds` values.

## [0.1.85] - 2026-05-30

### Changed
Expand Down
7 changes: 7 additions & 0 deletions charts/sourcebot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "sourcebot.serviceAccountName" $ }}
{{- with $.Values.sourcebot.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ . }}
{{- end }}
Comment thread
brendan-kellam marked this conversation as resolved.
Outdated
{{- if $.Values.sourcebot.podSecurityContext }}
securityContext:
{{- toYaml $.Values.sourcebot.podSecurityContext | nindent 8 }}
Expand Down Expand Up @@ -118,6 +121,10 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with $.Values.sourcebot.lifecycle }}
lifecycle:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: sourcebot-config
mountPath: /etc/sourcebot/config.json
Expand Down
6 changes: 6 additions & 0 deletions charts/sourcebot/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@
"startupProbe": {
"type": "object"
},
"lifecycle": {
"type": "object"
},
"terminationGracePeriodSeconds": {
"type": ["integer", "null"]
},
"extraVolumes": {
"type": "array"
},
Expand Down
7 changes: 7 additions & 0 deletions charts/sourcebot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ sourcebot:
# -- Initial delay before the first probe
periodSeconds: 30

# -- Container lifecycle hooks.
lifecycle: {}

# -- Grace period (seconds) Kubernetes waits between SIGTERM and SIGKILL on pod
# termination.
terminationGracePeriodSeconds: null

# -- Define additional volumes
# See: https://kubernetes.io/docs/concepts/storage/volumes/
extraVolumes: []
Expand Down
Loading