From fedec94ce620b88134d572e5de667668b11a6fd7 Mon Sep 17 00:00:00 2001 From: Jeremy Shimko Date: Wed, 25 Sep 2024 17:07:10 -0400 Subject: [PATCH] [svix] update db configs --- charts/svix/Chart.yaml | 2 +- charts/svix/templates/svix/deployment.yaml | 2 +- charts/svix/values.yaml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/svix/Chart.yaml b/charts/svix/Chart.yaml index 3905da3..e22a694 100644 --- a/charts/svix/Chart.yaml +++ b/charts/svix/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: svix description: A Helm chart for running svix on Kubernetes type: application -version: 0.4.1 +version: 0.5.0 dependencies: # https://github.com/bitnami/charts/blob/main/bitnami/postgresql/Chart.yaml diff --git a/charts/svix/templates/svix/deployment.yaml b/charts/svix/templates/svix/deployment.yaml index 2c293eb..df256be 100644 --- a/charts/svix/templates/svix/deployment.yaml +++ b/charts/svix/templates/svix/deployment.yaml @@ -47,7 +47,7 @@ spec: env: {{- if .Values.postgresql.enabled }} - name: SVIX_DB_DSN - value: "postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@svix-postgresql:5432/{{ .Values.postgresql.auth.database }}" + value: "postgres://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@svix-postgresql:5432/{{ .Values.postgresql.auth.database }}?{{ .Values.svix.dbUrlOptions }}" {{- end }} {{- if .Values.redis.enabled }} diff --git a/charts/svix/values.yaml b/charts/svix/values.yaml index 6cfc40a..14b34c6 100644 --- a/charts/svix/values.yaml +++ b/charts/svix/values.yaml @@ -26,6 +26,10 @@ svix: # - configMapRef: # name: my-configmap + # Optional postgres connection string options. + # These settings are only used if using the built in postgres chart (enabled below) + dbUrlOptions: "" # schema=public,connect_timeout=10,pool_timeout=10 + # Create a k8s secret with a JWT token that an app can use to authenticate with Svix. # Optionally choose a custom name for the secret and the key to store the JWT in. # Example usage of this secret in a service that needs to access the Svix API: