Skip to content

Commit

Permalink
Stop using latest to be consistent with deploys. Fix mix of host and …
Browse files Browse the repository at this point in the history
…hostname
  • Loading branch information
SorsOps committed Oct 22, 2024
1 parent c722242 commit 2d964ea
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion charts/supabase/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ maintainers:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.3
version: 0.0.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 3 additions & 3 deletions charts/supabase/templates/analytics/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ spec:
image: postgres:15-alpine
imagePullPolicy: IfNotPresent
env:
- name: DB_HOST
- name: DB_HOSTNAME
{{- if .Values.db.enabled }}
value: {{ include "supabase.db.fullname" . | quote }}
{{- else }}
value: {{ .Values.analytics.environment.DB_HOST | quote }}
value: {{ .Values.analytics.environment.DB_HOSTNAME | quote }}
{{- end }}
- name: DB_USER
valueFrom:
Expand All @@ -55,7 +55,7 @@ spec:
command: ["/bin/sh", "-c"]
args:
- |
until pg_isready -h $(DB_HOST) -p $(DB_PORT) -U $(DB_USER); do
until pg_isready -h $(DB_HOSTNAME) -p $(DB_PORT) -U $(DB_USER); do
echo "Waiting for database to start..."
sleep 2
done
Expand Down
38 changes: 19 additions & 19 deletions charts/supabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ secret:
# Optional: Postgres Database
# A standalone Postgres database configured to work with Supabase services.
# You can spin up any other Postgres database container if required.
# If so, make sure to adjust DB_HOST accordingly to point to the right database service.
# If so, make sure to adjust DB_HOSTNAME accordingly to point to the right database service.
db:
# Enable database provisioning
enabled: true
image:
repository: supabase/postgres
pullPolicy: IfNotPresent
tag: "latest"
tag: "15.6.1.133"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -177,7 +177,7 @@ studio:
image:
repository: supabase/studio
pullPolicy: IfNotPresent
tag: "latest"
tag: "20241021-9f9b083"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -282,7 +282,7 @@ auth:
port: 9999
environment:
# Override the database hostname if using external database
# DB_HOST: DATABASE.NAMESPACE.svc.cluster.local
# DB_HOSTNAME: DATABASE.NAMESPACE.svc.cluster.local
DB_USER: supabase_auth_admin
DB_PORT: 5432
DB_DRIVER: postgres
Expand Down Expand Up @@ -353,7 +353,7 @@ rest:
image:
repository: postgrest/postgrest
pullPolicy: IfNotPresent
tag: "latest"
tag: "v12.2.3"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down Expand Up @@ -382,7 +382,7 @@ rest:
port: 3000
environment:
# Override the database hostname if using external database
# DB_HOST: DATABASE.NAMESPACE.svc.cluster.local
# DB_HOSTNAME: DATABASE.NAMESPACE.svc.cluster.local
DB_USER: authenticator
DB_PORT: 5432
DB_DRIVER: postgres
Expand Down Expand Up @@ -430,7 +430,7 @@ realtime:
image:
repository: supabase/realtime
pullPolicy: IfNotPresent
tag: "latest"
tag: "v2.33.8"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
Expand Down Expand Up @@ -459,7 +459,7 @@ realtime:
port: 4000
environment:
# Override the database hostname if using external database
# DB_HOST: DATABASE.NAMESPACE.svc.cluster.local
# DB_HOSTNAME: DATABASE.NAMESPACE.svc.cluster.local
DB_USER: supabase_admin
DB_PORT: 5432
DB_SSL: disable # disable, allow, prefer, require, verify-ca, verify-full
Expand Down Expand Up @@ -541,7 +541,7 @@ meta:
port: 8080
environment:
# Override the database hostname if using external database
# DB_HOST: DATABASE.NAMESPACE.svc.cluster.local
# DB_HOSTNAME: DATABASE.NAMESPACE.svc.cluster.local
DB_USER: supabase_admin
DB_PORT: 5432
DB_DRIVER: postgres
Expand Down Expand Up @@ -586,7 +586,7 @@ storage:
image:
repository: supabase/storage-api
pullPolicy: IfNotPresent
tag: "latest"
tag: "v1.12.0"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -616,7 +616,7 @@ storage:
port: 5000
environment:
# Override the database hostname if using external database
# DB_HOST: DATABASE.NAMESPACE.svc.cluster.local
# DB_HOSTNAME: DATABASE.NAMESPACE.svc.cluster.local
DB_USER: supabase_storage_admin
DB_PORT: 5432
DB_DRIVER: postgres
Expand Down Expand Up @@ -681,7 +681,7 @@ imgproxy:
image:
repository: darthsim/imgproxy
pullPolicy: IfNotPresent
tag: "latest"
tag: "v3.26"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -761,7 +761,7 @@ kong:
image:
repository: kong
pullPolicy: IfNotPresent
tag: "latest"
tag: "3.8.0"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -856,7 +856,7 @@ analytics:
image:
repository: supabase/logflare
pullPolicy: IfNotPresent
tag: "latest"
tag: "1.8.12"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -887,7 +887,7 @@ analytics:
environment:
LOGFLARE_NODE_HOST: 127.0.0.1
# Override the database hostname if using external database
# DB_HOST: DATABASE.NAMESPACE.svc.cluster.local
# DB_HOSTNAME: DATABASE.NAMESPACE.svc.cluster.local
DB_USERNAME: supabase_admin
DB_PORT: 5432
DB_DRIVER: postgresql
Expand Down Expand Up @@ -940,7 +940,7 @@ vector:
image:
repository: timberio/vector
pullPolicy: IfNotPresent
tag: "latest"
tag: "0.42.0-alpine"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -1007,7 +1007,7 @@ functions:
image:
repository: supabase/edge-runtime
pullPolicy: IfNotPresent
tag: "latest"
tag: "v1.59.0"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down Expand Up @@ -1037,7 +1037,7 @@ functions:
port: 9000
environment:
# Override the database hostname if using external database
# DB_HOST: DATABASE.NAMESPACE.svc.cluster.local
# DB_HOSTNAME: DATABASE.NAMESPACE.svc.cluster.local
DB_USERNAME: supabase_functions_admin
DB_PORT: 5432
DB_DRIVER: postgresql
Expand Down Expand Up @@ -1081,7 +1081,7 @@ minio:
image:
repository: minio/minio
pullPolicy: IfNotPresent
tag: "latest"
tag: "RELEASE.2024-10-02T17-50-41Z"
imagePullSecrets: []
replicaCount: 1
nameOverride: ""
Expand Down

0 comments on commit 2d964ea

Please sign in to comment.