Skip to content

Bug fix for external database and containers without "latest" tag support. #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion charts/supabase/templates/analytics/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ spec:
value: {{ .Values.analytics.bigQuery.projectNumber | quote }}
{{- else }}
- name: POSTGRES_BACKEND_URL
value: $(DB_DRIVER)://$(DB_USERNAME):$(DB_PASSWORD_ENC)@$(DB_HOSTNAME):$(DB_PORT)/$(DB_DATABASE)
value: $(DB_DRIVER)://$(DB_USERNAME):$(DB_PASSWORD)@$(DB_HOST):$(DB_PORT)/$(DB_DATABASE)?sslmode=$(DB_SSL)
{{- if .Values.analytics.environment.DB_SCHEMA }}
- name: POSTGRES_BACKEND_SCHEMA
value: $(DB_SCHEMA)
{{- end }}
- name: LOGFLARE_FEATURE_FLAG_OVERRIDE
value: $(FEATURE_FLAG_OVERRIDE)
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/supabase/templates/auth/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ spec:
key: database
{{- end }}
- name: GOTRUE_DB_DATABASE_URL
value: $(DB_DRIVER)://$(DB_USER):$(DB_PASSWORD_ENC)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?search_path=auth&sslmode=$(DB_SSL)
value: $(DB_DRIVER)://$(DB_USER):$(DB_PASSWORD)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?search_path=auth&sslmode=$(DB_SSL)
- name: GOTRUE_DB_DRIVER
value: $(DB_DRIVER)
- name: GOTRUE_JWT_SECRET
Expand Down
2 changes: 1 addition & 1 deletion charts/supabase/templates/functions/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ spec:
key: serviceKey
{{- end }}
- name: POSTGRES_BACKEND_URL
value: $(DB_DRIVER)://$(DB_USERNAME):$(DB_PASSWORD_ENC)@$(DB_HOSTNAME):$(DB_PORT)/$(DB_DATABASE)?search_path=auth&sslmode=$(DB_SSL)
value: $(DB_DRIVER)://$(DB_USERNAME):$(DB_PASSWORD)@$(DB_HOSTNAME):$(DB_PORT)/$(DB_DATABASE)?search_path=auth&sslmode=$(DB_SSL)
{{- with .Values.functions.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/supabase/templates/rest/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
key: database
{{- end }}
- name: PGRST_DB_URI
value: $(DB_DRIVER)://$(DB_USER):$(DB_PASSWORD_ENC)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?sslmode=$(DB_SSL)
value: $(DB_DRIVER)://$(DB_USER):$(DB_PASSWORD)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?sslmode=$(DB_SSL)
- name: PGRST_JWT_SECRET
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/supabase/templates/storage/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ spec:
key: database
{{- end }}
- name: DATABASE_URL
value: $(DB_DRIVER)://$(DB_USER):$(DB_PASSWORD_ENC)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?search_path=auth&sslmode=$(DB_SSL)
value: $(DB_DRIVER)://$(DB_USER):$(DB_PASSWORD)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?search_path=auth&sslmode=$(DB_SSL)
- name: PGRST_JWT_SECRET
valueFrom:
secretKeyRef:
Expand Down
14 changes: 9 additions & 5 deletions charts/supabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ auth:
image:
repository: supabase/gotrue
pullPolicy: IfNotPresent
tag: "latest"
tag: "v2.164.0"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -511,7 +511,7 @@ meta:
image:
repository: supabase/postgres-meta
pullPolicy: IfNotPresent
tag: "latest"
tag: "v0.84.3"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -887,11 +887,15 @@ analytics:
environment:
LOGFLARE_NODE_HOST: 127.0.0.1
# Override the database hostname if using external database
# DB_HOST used for init-db
# DB_HOST: DATABASE.NAMESPACE.svc.cluster.local
# DB_HOSTNAME used for database connection
# DB_HOSTNAME: DATABASE.NAMESPACE.svc.cluster.local
DB_USERNAME: supabase_admin
DB_PORT: 5432
DB_DRIVER: postgresql
DB_SCHEMA: _analytics
DB_SCHEMA: _analytics # Optional
DB_SSL: disable # disable, allow, prefer, require, verify-ca, verify-full
LOGFLARE_SINGLE_TENANT: "true"
LOGFLARE_SUPABASE_MODE: "true"
FEATURE_FLAG_OVERRIDE: multibackend=true
Expand Down Expand Up @@ -940,7 +944,7 @@ vector:
image:
repository: timberio/vector
pullPolicy: IfNotPresent
tag: "latest"
tag: "nightly-2024-11-25-alpine"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -1007,7 +1011,7 @@ functions:
image:
repository: supabase/edge-runtime
pullPolicy: IfNotPresent
tag: "latest"
tag: "v1.64.1"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down