mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 23:34:30 +00:00
- Makefile: Added 'init' and 'deploy' targets for k3s parity and Gitea staging. - OpenTofu: Fixed namespace handling in k3s main.tf to prevent metadata overwrites. - UI: Added 'GitOps' and 'Database Options' configuration screens. - Core: Enhanced monitoring, milestones, and environment handling for new services. - Supabase: Integrated full Helm chart and manifest rendering logic. - Gitea: Added deployment scripts and GitOps sync support. - Database: Added Percona/Postgres Dockerfile templates and improved TDE scripts. - Tests: Added coverage for new UI screens and navigation flows.
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
{{- if .Values.deployment.db.enabled -}}
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: {{ include "supabase.fullname" . }}-test-db
|
|
labels:
|
|
{{- include "supabase.labels" . | nindent 4 }}
|
|
annotations:
|
|
"helm.sh/hook": test
|
|
spec:
|
|
ttlSecondsAfterFinished: 100
|
|
template:
|
|
spec:
|
|
containers:
|
|
- command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
pg_isready -h $(DB_HOST) -p $(DB_PORT) -U postgres || $(echo "\e[0;31mFailed to connect to the database." && exit 1)
|
|
echo "Database is ready"
|
|
env:
|
|
- name: DB_HOST
|
|
{{- if .Values.deployment.db.enabled }}
|
|
value: {{ include "supabase.db.fullname" . | quote }}
|
|
{{- else }}
|
|
value: {{ .Values.environment.auth.DB_HOST | quote }}
|
|
{{- end }}
|
|
- name: DB_PORT
|
|
value: {{ .Values.environment.auth.DB_PORT | quote }}
|
|
image: postgres:15-alpine
|
|
imagePullPolicy: IfNotPresent
|
|
name: test-db
|
|
restartPolicy: Never
|
|
{{- end }}
|