Skip to content

Commit

Permalink
feat(shiny): allow use of an external postresql database
Browse files Browse the repository at this point in the history
  • Loading branch information
etgtk6 committed Aug 15, 2023
1 parent 3f14c22 commit 3d83681
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/shiny/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ type: application
# 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.27.0
version: 1.0.0

dependencies:
- name: postgresql
version: 12.1.5
repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled
condition: postgresql.enabled.internal
- name: library-chart
version: 1.3.15
repository: https://inseefrlab.github.io/helm-charts-interactive-services
4 changes: 2 additions & 2 deletions charts/shiny/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
command: {{ .Values.image.command }}
{{- end }}
env:
{{- if .Values.postgresql.enabled }}
{{- if or (.Values.postgresql.enabled.internal) (.Values.postgresql.enabled.external) }}
- name: POSTGRESQL_DB_NAME
value: {{ .Values.postgresql.auth.database }}
- name: POSTGRESQL_DB_HOST
Expand Down Expand Up @@ -118,7 +118,7 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
{{- toYaml .Values.volumeMounts | default "" | nindent 12 }}
{{- if .Values.postgresql.enabled }}
{{- if .Values.postgresql.enabled.internal }}
initContainers:
- name: wait-for-postgresql
image: "alpine"
Expand Down
4 changes: 3 additions & 1 deletion charts/shiny/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ s3:
sessionToken: ""

postgresql:
enabled: false
enabled:
internal: false
external: false
auth:
username: ""
database: ""
Expand Down

0 comments on commit 3d83681

Please sign in to comment.