Skip to content

Commit

Permalink
also provide writable tmp volumes for db init check (#170)
Browse files Browse the repository at this point in the history
* also provide writable tmp volumes for db init check so used rails runner is guaranteed to work

specifically when appsignal is configured, it will try to write a log file and fail due to the read-only file system (if configured which it is by default)

* Create three-laws-sniff.md

---------

Co-authored-by: Oliver Günther <[email protected]>
  • Loading branch information
machisuji and oliverguenther authored Feb 11, 2025
1 parent 7679fee commit 846b5a7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-laws-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openproject/helm-charts": minor
---

also provide writable tmp volumes for db init check
2 changes: 2 additions & 0 deletions charts/openproject/templates/seeder-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ spec:
{{- include "openproject.env" . | nindent 12 }}
resources:
{{- toYaml .Values.dbInit.resources | nindent 12 }}
volumeMounts:
{{- include "openproject.tmpVolumeMounts" . | indent 12 }}
{{- include "openproject.containerSecurityContext" . | indent 10 }}
containers:
- name: seeder
Expand Down
2 changes: 2 additions & 0 deletions charts/openproject/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ spec:
- /app/docker/prod/wait-for-db
resources:
{{- toYaml .Values.appInit.resources | nindent 12 }}
volumeMounts:
{{- include "openproject.tmpVolumeMounts" . | indent 12 }}
containers:
- name: "openproject"
{{- include "openproject.containerSecurityContext" . | indent 10 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/openproject/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ spec:
- /app/docker/prod/wait-for-db
resources:
{{- toYaml .Values.appInit.resources | nindent 12 }}
volumeMounts:
{{- include "openproject.tmpVolumeMounts" . | indent 12 }}
containers:
- name: "openproject"
{{- include "openproject.containerSecurityContext" . | indent 10 }}
Expand Down

0 comments on commit 846b5a7

Please sign in to comment.