Skip to content

Commit 0f07045

Browse files
authored
Merge pull request #16 from diggerhq/feat/allow-sslmode-flag
add sslmode flag to be configurable
2 parents ae7f530 + eac4378 commit 0f07045

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

charts/digger-backend/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.6
18+
version: 0.1.7
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "v0.6.42"
24+
appVersion: "v0.6.44"

charts/digger-backend/templates/backend-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ spec:
5050
value: "1"
5151
- name: DATABASE_URL
5252
{{- if .Values.postgres.enabled }}
53-
value: "postgres://postgres:$(POSTGRES_PASSWORD)@{{ include "digger-backend.fullname" . }}-postgres:5432/postgres?sslmode=disable"
53+
value: "postgres://postgres:$(POSTGRES_PASSWORD)@{{ include "digger-backend.fullname" . }}-postgres:5432/postgres?sslmode={{ .Values.postgres.sslmode }}"
5454
{{- else }}
5555
{{- $pg := .Values.digger.postgres }}
56-
value: "postgres://{{ $pg.user }}:$(POSTGRES_PASSWORD)@{{ $pg.host }}:{{ $pg.port }}/{{ $pg.database }}?sslmode=disable"
56+
value: "postgres://{{ $pg.user }}:$(POSTGRES_PASSWORD)@{{ $pg.host }}:{{ $pg.port }}/{{ $pg.database }}?sslmode={{ $pg.sslmode }}"
5757
{{- end }}
5858
- name: ALLOW_DIRTY
5959
value: "{{ .Values.digger.postgres.allow_dirty }}"

charts/digger-backend/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ digger:
66
# tag: digger backend image tag
77
image:
88
repository: registry.digger.dev/diggerhq/digger_backend
9-
tag: "v0.6.42"
9+
tag: "v0.6.44"
1010

1111
# livenessProbe and startupProbe settings
1212
# https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
@@ -90,6 +90,7 @@ digger:
9090
existingSecretKey: "postgres-password"
9191

9292
# to define connection details in chart:
93+
sslmode: "disable"
9394
user: "postgres"
9495
database: "digger"
9596
host: "pg-postgresql.db"
@@ -100,6 +101,7 @@ digger:
100101
# configure this section if you want to deploy a postgres db
101102
# WARNING: use only for test purposes, no persistency has been configured
102103
postgres:
104+
sslmode: "disable"
103105
enabled: false
104106
image: postgres
105107
tag: "14"

0 commit comments

Comments
 (0)