From 004636cb332c574c3c725106ea3b51262278d6e3 Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Sat, 16 Nov 2024 14:32:51 +0100 Subject: [PATCH] fix(helm): database name Signed-off-by: Nicolas Lamirault --- charts/keep/templates/backend.yaml | 2 +- charts/keep/values.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/keep/templates/backend.yaml b/charts/keep/templates/backend.yaml index 847925e..38599cd 100644 --- a/charts/keep/templates/backend.yaml +++ b/charts/keep/templates/backend.yaml @@ -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 }} diff --git a/charts/keep/values.yaml b/charts/keep/values.yaml index 26e5e75..392b671 100644 --- a/charts/keep/values.yaml +++ b/charts/keep/values.yaml @@ -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