Skip to content

Commit

Permalink
feat(queen): change chart for queen 4 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
davdarras authored Nov 22, 2023
1 parent cb2c1d1 commit 934bfd0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 3 additions & 3 deletions charts/queen/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ description: A Helm chart for Queen API, UI and DB
dependencies:
- name: postgresql
condition: postgresql.enabled
version: 12.1.9
version: 14.10.0
repository: https://charts.bitnami.com/bitnami

type: application
version: 0.4.1
appVersion: "1.16.0"
version: 0.5.0
appVersion: "4.0.0"
16 changes: 10 additions & 6 deletions charts/queen/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ spec:
serviceAccountName: {{ include "queen.api.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.api.podSecurityContext | nindent 8 }}
initContainers:
- name: check-db-ready
image: postgres:14.10
command: ['sh', '-c',
until pg_isready -h {{ include "queen.postgresql.fullname" . }} -p {{ .Values.postgresql.auth.port}};
do echo waiting for database; sleep 2; done;]
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand All @@ -34,17 +40,15 @@ spec:
imagePullPolicy: {{ .Values.api.image.pullPolicy }}
{{- if .Values.postgresql.enabled }}
env:
- name: FR_INSEE_QUEEN_PERSISTENCE_DATABASE_PASSWORD
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "queen.postgresql.fullname" .}}
key: password
- name: FR_INSEE_QUEEN_PERSISTENCE_DATABASE_HOST
value: {{ include "queen.postgresql.fullname" . }}
- name: FR_INSEE_QUEEN_PERSISTENCE_DATABASE_USER
- name: SPRING_DATASOURCE_URL
value: {{ printf "jdbc:postgresql://%s:%.0f/%s" (include "queen.postgresql.fullname" .) .Values.postgresql.auth.port .Values.postgresql.auth.database | quote }}
- name: SPRING_DATASOURCE_USERNAME
value: {{ .Values.postgresql.auth.username | quote}}
- name: FR_INSEE_QUEEN_PERSISTENCE_DATABASE_SCHEMA
value: {{ .Values.postgresql.auth.database | quote}}
{{- end }}
{{- if and .Values.api.enabled .Values.api.env }}
envFrom:
Expand Down

0 comments on commit 934bfd0

Please sign in to comment.