File tree Expand file tree Collapse file tree 11 files changed +33
-11
lines changed
charts/supabase/templates/test Expand file tree Collapse file tree 11 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 20
20
- -c
21
21
- |
22
22
curl -sfo /dev/null \
23
- http://{{ include "supabase.analytics.fullname" . }}:{{ .Values.analytics.service.port }}/health
23
+ http://{{ include "supabase.analytics.fullname" . }}:{{ .Values.analytics.service.port }}/health \
24
+ || { echo -e "\033[31mFailed to connect to the {{ include "supabase.analytics.fullname" . }}."; exit 1; }
25
+
24
26
echo "Sevice {{ include "supabase.analytics.fullname" . }} is healthy."
25
27
restartPolicy : Never
26
28
{{- end }}
Original file line number Diff line number Diff line change 20
20
- -c
21
21
- |
22
22
curl -sfo /dev/null \
23
- http://{{ include "supabase.auth.fullname" . }}:{{ .Values.auth.service.port }}/health
23
+ http://{{ include "supabase.auth.fullname" . }}:{{ .Values.auth.service.port }}/health \
24
+ || { echo -e "\033[31mFailed to connect to the {{ include "supabase.auth.fullname" . }}."; exit 1; }
25
+
24
26
echo "Sevice {{ include "supabase.auth.fullname" . }} is healthy."
25
27
restartPolicy : Never
26
28
{{- end }}
Original file line number Diff line number Diff line change 16
16
- /bin/sh
17
17
- -c
18
18
- |
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 $(DB_USER) \
20
+ || { echo -e "\033[31mFailed to connect to the database."; exit 1; }
21
+
20
22
echo "Database is ready"
21
23
env :
24
+ # no password?
22
25
- name : DB_HOST
23
26
{{- if .Values.db.enabled }}
24
27
value : {{ include "supabase.db.fullname" . | quote }}
Original file line number Diff line number Diff line change 20
20
- -c
21
21
- |
22
22
curl -sfo /dev/null \
23
- http://{{ include "supabase.imgproxy.fullname" . }}:{{ .Values.imgproxy.service.port }}/health
23
+ http://{{ include "supabase.imgproxy.fullname" . }}:{{ .Values.imgproxy.service.port }}/health \
24
+ || { echo -e "\033[31mFailed to connect to the {{ include "supabase.imgproxy.fullname" . }}."; exit 1; }
25
+
24
26
echo "Sevice {{ include "supabase.imgproxy.fullname" . }} is healthy."
25
27
restartPolicy : Never
26
28
{{- end }}
Original file line number Diff line number Diff line change 34
34
curl -sL --fail \
35
35
-o /dev/null \
36
36
"http://${DASHBOARD_USERNAME}:${DASHBOARD_PASSWORD}@{{ include "supabase.kong.fullname" . }}:{{ .Values.kong.service.port }}" \
37
- || ( echo -e "\e[0;31mFailed to get a valid response." && exit 1 )
37
+ || { echo -e "\033[31mFailed to connect to the {{ include "supabase.kong.fullname" . }}."; exit 1; }
38
+
38
39
echo "Successfully connected."
39
40
restartPolicy : Never
40
41
{{- end }}
Original file line number Diff line number Diff line change 20
20
- -c
21
21
- |
22
22
curl -sfo /dev/null \
23
- http://{{ include "supabase.meta.fullname" . }}:{{ .Values.meta.service.port }}/health
23
+ http://{{ include "supabase.meta.fullname" . }}:{{ .Values.meta.service.port }}/health \
24
+ || { echo -e "\033[31mFailed to connect to the {{ include "supabase.meta.fullname" . }}."; exit 1; }
25
+
24
26
echo "Sevice {{ include "supabase.meta.fullname" . }} is healthy."
25
27
restartPolicy : Never
26
28
{{- end }}
Original file line number Diff line number Diff line change 19
19
- -c
20
20
- |
21
21
curl -sfo /dev/null \
22
- http://{{ include "supabase.minio.fullname" . }}:{{ .Values.minio.service.port }}/minio/health/live
22
+ http://{{ include "supabase.minio.fullname" . }}:{{ .Values.minio.service.port }}/minio/health/live \
23
+ || { echo -e "\033[31mFailed to connect to the {{ include "supabase.minio.fullname" . }}."; exit 1; }
24
+
23
25
echo "Sevice {{ include "supabase.minio.fullname" . }} is healthy."
24
26
restartPolicy : Never
25
27
{{- end }}
Original file line number Diff line number Diff line change 20
20
- -c
21
21
- |
22
22
curl -sfo /dev/null \
23
- http://{{ include "supabase.realtime.fullname" . }}:{{ .Values.realtime.service.port }}
23
+ http://{{ include "supabase.realtime.fullname" . }}:{{ .Values.realtime.service.port }} \
24
+ || { echo -e "\033[31mFailed to connect to the {{ include "supabase.realtime.fullname" . }}."; exit 1; }
25
+
24
26
echo "Sevice {{ include "supabase.realtime.fullname" . }} is healthy."
25
27
restartPolicy : Never
26
28
{{- end }}
Original file line number Diff line number Diff line change 20
20
- -c
21
21
- |
22
22
curl -sfo /dev/null \
23
- http://{{ include "supabase.rest.fullname" . }}:{{ .Values.rest.service.port }}
23
+ http://{{ include "supabase.rest.fullname" . }}:{{ .Values.rest.service.port }} \
24
+ || { echo -e "\033[31mFailed to connect to the {{ include "supabase.rest.fullname" . }}."; exit 1; }
25
+
24
26
echo "Sevice {{ include "supabase.rest.fullname" . }} is healthy."
25
27
restartPolicy : Never
26
28
{{- end }}
Original file line number Diff line number Diff line change 20
20
- -c
21
21
- |
22
22
curl -sfo /dev/null \
23
- http://{{ include "supabase.storage.fullname" . }}:{{ .Values.storage.service.port }}/status
23
+ http://{{ include "supabase.storage.fullname" . }}:{{ .Values.storage.service.port }}/status \
24
+ || { echo -e "\033[31mFailed to connect to the {{ include "supabase.storage.fullname" . }}."; exit 1; }
25
+
24
26
echo "Sevice {{ include "supabase.storage.fullname" . }} is healthy."
25
27
restartPolicy : Never
26
28
{{- end }}
You can’t perform that action at this time.
0 commit comments