Skip to content

Commit

Permalink
Added value for external_db
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey1330 committed Mar 7, 2024
1 parent 7e86f1e commit 8b3519c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/ever-gauzy-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ spec:
- name: SENTRY_POSTGRES_TRACKING_ENABLED
value: {{ .Values.sentry.sentryPostgresTrackingEnabled | quote }}
- name: DB_HOST
{{- if .Values.postgresql.global.external_db }}
value: {{ .Values.postgresql.global.postgresql.auth.username | quote }}
{{- else }}
value: "{{ .Release.Name }}-postgresql"
{{- end }}
- name: DB_USER
value: {{ .Values.postgresql.global.postgresql.auth.username | quote }}
- name: DB_PASS
Expand Down
3 changes: 3 additions & 0 deletions charts/ever-gauzy-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ postgresql:
global:
## @param global.imageRegistry Global Docker image registry
##
# Uses external db endpoint when set to true else it uses database provisioned within the cluster.
external_db: true

imageRegistry: ""
## @param global.imagePullSecrets Global Docker registry secret names as an array
## e.g.
Expand Down

0 comments on commit 8b3519c

Please sign in to comment.