Skip to content

Commit

Permalink
fix(helm): database name
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault committed Nov 16, 2024
1 parent 9273adc commit 004636c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/keep/templates/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ spec:
{{- if .Values.backend.waitForDatabase }}
- name: wait-for-database
image: busybox
command: ['sh', '-c', 'until nc -z keep-database 3306; do sleep 1; done;']
command: ['sh', '-c', 'until nc -z ${DATABASE_NAME} 3306; do sleep 1; done;']
{{- end }}
{{- range .Values.backend.extraInitContainers }}
- name: {{ .name }}
Expand Down
2 changes: 2 additions & 0 deletions charts/keep/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ backend:
env:
- name: DATABASE_CONNECTION_STRING
value: mysql+pymysql://root@keep-database:3306/keep
- name: DATABASE_NAME
value: keep-database
- name: SECRET_MANAGER_TYPE
value: k8s
- name: PORT
Expand Down

0 comments on commit 004636c

Please sign in to comment.