Skip to content

Commit

Permalink
chore: allow ssl configuration (#115)
Browse files Browse the repository at this point in the history
allow ssl configuration
  • Loading branch information
gastonfournier authored Dec 5, 2023
1 parent 82b4708 commit 9282e9e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ jobs:
env:
KUBERNETES_VERSION: ${{ matrix.k8s }}
KUBECONFORM_VERSION: v0.6.1
- name: print tap results
run: cat results/unleash-${{ matrix.k8s }}-result.tap
if: always()
- name: Create test summary
uses: test-summary/action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion charts/unleash/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ sources:
- https://github.com/Unleash/unleash
- https://github.com/Unleash/helm-charts
type: application
version: 3.0.5
version: 3.0.6
2 changes: 1 addition & 1 deletion charts/unleash/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
- name: DATABASE_USER
value: "{{ .Values.dbConfig.user }}"
- name: DATABASE_SSL
value: "{{ .Values.dbConfig.ssl | default "false" }}"
value: {{ if .Values.dbConfig.ssl }}{{ .Values.dbConfig.ssl | toJson | quote }}{{ else }}"{{ "false" }}"{{ end }}
- name: DATABASE_URL
value: "postgres://$(DATABASE_USER):$(DATABASE_PASS)@$(DATABASE_HOST):$(DATABASE_PORT)/$(DATABASE)"
{{- if .Values.dbConfig.schema }}
Expand Down
3 changes: 2 additions & 1 deletion charts/unleash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ dbConfig:
key: ""
# if postgres dependency chart is used, this needs to be the same value as postgresql.auth.username
user: unleash
ssl: false
# ssl value must be a stringified JSON object https://docs.getunleash.io/reference/deploy/configuring-unleash#dbssl-vs-database_ssl-options
# ssl: { rejectUnauthorized: false }

env: []
# - name: GOOGLE_CLIENT_ID
Expand Down

0 comments on commit 9282e9e

Please sign in to comment.