Skip to content

Commit

Permalink
Fix: fluffy use secret database connection string (#228)
Browse files Browse the repository at this point in the history
* Fix: fluffy use secret database connection string

* bump patch level
  • Loading branch information
nopcoder authored Jan 17, 2024
1 parent 8031735 commit ab0f637
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/lakefs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: lakefs
description: A Helm chart for running LakeFS on Kubernetes
type: application
version: 1.0.13
version: 1.0.14
appVersion: 1.8.0

home: https://lakefs.io
Expand Down
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 ab0f637

Please sign in to comment.