Skip to content

Commit

Permalink
env variables conditional on external postgre enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
avouacr committed Jan 13, 2022
1 parent 4f9953a commit 811246e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/shiny/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.3.0
version: 0.3.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions charts/shiny/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
{{- if .Values.externalPostgreSQL.enabled }}
- secretRef:
name: {{ .Values.externalPostgreSQL.credentialsSecretName }}
{{- end }}
ports:
- name: http
containerPort: 3838
Expand Down

0 comments on commit 811246e

Please sign in to comment.