Skip to content
Draft
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
2 changes: 1 addition & 1 deletion charts/runtime-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: runtime-api
description: A Helm chart for the Flask application
version: 0.1.11 # Change this to trigger a new helm chart version being published
version: 0.1.12 # Change this to trigger a new helm chart version being published
appVersion: "1.0.0"
dependencies:
- name: postgresql
Expand Down
6 changes: 5 additions & 1 deletion charts/runtime-api/templates/create-db-user-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ spec:
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: create-user
image: postgres:14
image: {{ .Values.database.createJob.image | default "postgres:14" | quote }}
env:
- name: PGPASSWORD
valueFrom:
Expand Down
3 changes: 3 additions & 0 deletions charts/runtime-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ postgresql:
database:
create: false # Will only be true for AWS as it can't create the DB in terraform
secretName: runtime-api-db-credentials # Secret containing external database credentials
createJob:
image: "postgres:14"

poolSize:
api: 5 # Pool size for API deployment (default)
cronjobs: 2 # Pool size for cronjobs (default)
Expand Down
Loading