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
5 changes: 5 additions & 0 deletions .changeset/container-lifecycle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"dextinity-api": minor
---

Add the value `lifecycle`, which sets the lifecycle hooks of the API container, such as a `preStop` pause.
4 changes: 4 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ spec:
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.lifecycle }}
lifecycle:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: /tmp
name: tmp
Expand Down
5 changes: 5 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ readinessProbe:
path: /api/healthcheck/ready
port: http

lifecycle: {}
# preStop:
# sleep:
# seconds: 5

cronJobs:
build-checker:
enabled: false
Expand Down
Loading