Skip to content

Commit bf11522

Browse files
committed
postgresqlpassword is in auth block
1 parent a89eded commit bf11522

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## 0.6.1
9+
10+
### Fixed
11+
- postgresqlpassword is in auth block
12+
813
## 0.6.0
914

1015
### Fixed

Chart.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: >
1212
# This is the chart version. This version number should be incremented each time you make changes
1313
# to the chart and its templates, including the app version.
1414
# Versions are expected to follow Semantic Versioning (https://semver.org/)
15-
version: 0.6.0
15+
version: 0.6.1
1616

1717
# This is the version number of the application being deployed. This version number should be
1818
# incremented each time you make changes to the application. Versions are not expected to
@@ -43,5 +43,4 @@ annotations:
4343
- name: Helm Chart
4444
url: https://github.com/pecanproject/bety-helm
4545
artifacthub.io/changes: |
46-
- bitnami legacy postgresql image
47-
- could not find passsword for postgresql
46+
- postgresqlpassword is in auth block

templates/_helpers.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,14 @@ Environment variables for PostgreSQL
7979
- name: PGPASSWORD
8080
valueFrom:
8181
secretKeyRef:
82+
{{- if .Values.postgresql.enabled }}
83+
name: {{ .Release.Name }}-postgresql
84+
key: postgres-password
85+
{{- else }}
8286
name: {{ include "betydb.fullname" . }}
8387
key: postgresqlPassword
8488
{{- end }}
89+
{{- end }}
8590

8691
{{/*
8792
Environment variables for BetyDB

templates/secrets.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
{{- include "betydb.labels" . | nindent 4 }}
77
type: Opaque
88
data:
9-
{{- if and (not .Values.postgresql.enabled) .Values.postgresql.auth.password }}
10-
postgresqlPassword: {{ .Values.postgresql.auth.password | b64enc | quote }}
9+
{{- if and (not .Values.postgresql.enabled) .Values.postgresql.auth.postgresPassword }}
10+
postgresqlPassword: {{ .Values.postgresql.auth.postgresPassword | b64enc | quote }}
1111
{{- end }}
1212
betyPassword: {{ .Values.betyPassword | b64enc | quote }}
1313
secretKey: {{ .Values.secretKey | b64enc | quote }}

0 commit comments

Comments
 (0)