Skip to content

Commit

Permalink
[svix] update db configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jshimko committed Sep 25, 2024
1 parent c7d53f1 commit fedec94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/svix/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion charts/svix/templates/svix/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/svix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fedec94

Please sign in to comment.