Skip to content

Commit

Permalink
Fix: fluffy use secret database connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder committed Jan 16, 2024
1 parent 8031735 commit c7ab556
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion charts/lakefs/templates/_fluffy.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,19 @@ env:
- name: FLUFFY_AUTH_SERVE_LISTEN_ADDRESS
value: {{ printf ":%s" (include "fluffy.rbac.containerPort" .) }}
{{- end }}
{{- if and .Values.useDevPostgres (.Values.fluffy.rbac).enabled }}
{{- if and .Values.existingSecret .Values.secretKeys.databaseConnectionString }}
- name: FLUFFY_DATABASE_POSTGRES_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: {{ .Values.existingSecret }}
key: {{ .Values.secretKeys.databaseConnectionString }}
{{- else if and .Values.secrets (.Values.secrets).databaseConnectionString }}
- name: FLUFFY_DATABASE_POSTGRES_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: {{ include "lakefs.fullname" . }}
key: database_connection_string
{{- else if and .Values.useDevPostgres (.Values.fluffy.rbac).enabled }}
- name: FLUFFY_DATABASE_TYPE
value: postgres
- name: FLUFFY_DATABASE_POSTGRES_CONNECTION_STRING
Expand Down

0 comments on commit c7ab556

Please sign in to comment.