support wait-for-it.sh

This commit is contained in:
nicktrn
2025-06-24 11:18:28 +01:00
parent bff80c1ceb
commit c7fb6a3f10
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -171,6 +171,17 @@ localhost:5000
{{- end -}}
{{- end }}
{{/*
PostgreSQL host (for wait-for-it script)
*/}}
{{- define "trigger-v4.postgres.host" -}}
{{- if .Values.postgres.external -}}
{{ .Values.postgres.externalConnection.host }}:{{ .Values.postgres.externalConnection.port }}
{{- else -}}
{{ include "trigger-v4.fullname" . }}-postgres:{{ .Values.postgres.primary.service.ports.postgres }}
{{- end -}}
{{- end }}
{{/*
Supervisor connection details
*/}}
+2
View File
@@ -77,6 +77,8 @@ spec:
value: {{ include "trigger-v4.postgres.connectionString" . | quote }}
- name: DIRECT_URL
value: {{ include "trigger-v4.postgres.connectionString" . | quote }}
- name: DATABASE_HOST
value: {{ include "trigger-v4.postgres.host" . | quote }}
- name: REDIS_HOST
value: {{ include "trigger-v4.redis.host" . | quote }}
- name: REDIS_PORT