Skip to content

Commit d03ceb6

Browse files
committed
fix: remove unused DB_USER from test connection db
1 parent 0906d72 commit d03ceb6

File tree

1 file changed

+1
-11
lines changed
  • charts/supabase/templates/test

1 file changed

+1
-11
lines changed

charts/supabase/templates/test/db.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- /bin/sh
1717
- -c
1818
- |
19-
pg_isready -h $(DB_HOST) -p $(DB_PORT) -U $(DB_USER) || $(echo "\e[0;31mFailed to connect to the database." && exit 1)
19+
pg_isready -h $(DB_HOST) -p $(DB_PORT) -U postgres || $(echo "\e[0;31mFailed to connect to the database." && exit 1)
2020
echo "Database is ready"
2121
env:
2222
- name: DB_HOST
@@ -25,16 +25,6 @@ spec:
2525
{{- else }}
2626
value: {{ .Values.auth.environment.DB_HOST | quote }}
2727
{{- end }}
28-
- name: DB_USER
29-
valueFrom:
30-
secretKeyRef:
31-
{{- if .Values.secret.db.secretRef }}
32-
name: {{ .Values.secret.db.secretRef }}
33-
key: {{ .Values.secret.db.secretRefKey.username | default "username" }}
34-
{{- else }}
35-
name: {{ include "supabase.secret.db" . }}
36-
key: username
37-
{{- end }}
3828
- name: DB_PORT
3929
value: {{ .Values.auth.environment.DB_PORT | quote }}
4030
image: postgres:15-alpine

0 commit comments

Comments
 (0)