Skip to content

Commit 3535adf

Browse files
authored
Merge pull request #9 from PecanProject/upgrade-postgresql
upgrade postgresql
2 parents 9cc5541 + bfd4d66 commit 3535adf

File tree

6 files changed

+76
-44
lines changed

6 files changed

+76
-44
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
## 0.5.5
9+
10+
### Fixed
11+
- use new repository for postgresql chart
12+
13+
## Changed
14+
- upgraded postgresql to 14.5
15+
16+
## 0.5.4
17+
18+
### Fixed
19+
- back to hooks since job completion requires RBAC role
20+
21+
## 0.5.3
22+
23+
### Fixed
24+
- need to check for table before start bety application
25+
26+
## 0.5.2
27+
28+
### Added
29+
- use new check image to use PG environment variables
30+
- add-user and load-db are now jobs, not hooks (prevent timeout issues)
31+
32+
## 0.5.1
33+
34+
## Changed
35+
- update README to describe values
36+
- fix left over when initializing from URL
37+
- fix binami url change
38+
39+
## 0.5.0
40+
41+
## Added
42+
- initial release of the BETY helm chart.
43+
- build on bety 5.4.1

Chart.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: postgresql
3-
repository: https://raw.githubusercontent.com/bitnami/charts/pre-2022/bitnami
4-
version: 8.9.9
5-
digest: sha256:526629d1646df6a72d4414adc89f3728f0e97e37a4e8ac65036c51e06361c7bb
6-
generated: "2022-06-22T22:35:06.775527-05:00"
3+
repository: oci://registry-1.docker.io/bitnamicharts
4+
version: 11.9.13
5+
digest: sha256:f6c50d1570fe995f60d34ac2a25dcd502caa08ef5194624fe7db275aab8df10f
6+
generated: "2024-05-07T22:48:59.495844-05:00"

Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ sources:
3434
# are enabled.
3535
dependencies:
3636
- name: postgresql
37-
version: ~8.9
38-
repository: https://raw.githubusercontent.com/bitnami/charts/pre-2022/bitnami
37+
version: ~11
38+
repository: oci://registry-1.docker.io/bitnamicharts
3939
condition: postgres.enabled
4040

4141
annotations:
4242
artifacthub.io/links: |
4343
- name: Helm Chart
4444
url: https://github.com/pecanproject/bety-helm
4545
artifacthub.io/changes: |
46-
- back to hooks since job completion requires RBAC role
46+
- use new repository for postgresql chart

README.md

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,20 @@ The following table lists the configurable parameters of the Bety chart and thei
9595
| `ingress.tls` | TLS configuration for the hostnames to be covered | `false` |
9696
| `ingress.annotations` | Ingress annotations | `[]` (evaluated as a template) |
9797

98+
### PostgreSQL parameters
99+
100+
| Parameter | Description | Default |
101+
| ----------------------------------- | ------------------------------------------------------------ | ------------- |
102+
| `postgresq.auth.enablePostgresUser` | Create the postgres user, this is the `root` account for postgresql. | `true` |
103+
| `postgresq.auth.postgresPassword` | Password for `postgres` user | `supersecret` |
104+
105+
98106
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
99107
```
100108
helm install mt-release ncsa/betydb \
101109
--set betyPassword="xxxx" \
102110
--set secretKey="xxxx" \
103-
--set postgresql.postgresqlPassword="xxxx"
111+
--set postgresql.auth.postgresqlPassword="xxxx"
104112
```
105113

106114
The above command sets the bety password, secret, postgresql password to `xxxx`,`xxxx`, and `xxxx` respectively.
@@ -121,24 +129,3 @@ helm delete my-release
121129
```
122130

123131
The command removes all the Kubernetes components associated with the chart and deletes the release.
124-
125-
## ChangeLog
126-
127-
### 0.5.4
128-
- back to hooks since job completion requires RBAC role
129-
130-
### 0.5.3
131-
- need to check for table before start bety application
132-
133-
### 0.5.2
134-
- use new check image to use PG environment variables
135-
- add-user and load-db are now jobs, not hooks (prevent timeout issues)
136-
137-
### 0.5.1
138-
- update README to describe values
139-
- fix left over when initializing from URL
140-
- fix binami url change
141-
142-
### 0.5.0
143-
- initial release of the BETY helm chart.
144-
- build on bety 5.4.1

templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ Environment variables for PostgreSQL
7575
- name: PGPORT
7676
value: {{ include "betydb.postgresqlPort" . | quote }}
7777
- name: PGUSER
78-
value: {{ .Values.postgresql.postgresqlUsername | default "postgres" | quote }}
78+
value: {{ .Values.postgresql.auth.username | default "postgres" | quote }}
7979
- name: PGPASSWORD
8080
valueFrom:
8181
secretKeyRef:
8282
{{- if .Values.postgresql.enabled }}
8383
name: {{ .Release.Name }}-postgresql
84-
key: postgresql-password
84+
key: postgres-password
8585
{{- else }}
8686
name: {{ include "betydb.fullname" . }}
8787
key: postgresqlPassword

values.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,21 @@ postgresql:
9797
## postgresqlPort port to connect to postgresql
9898
# postgresqlPort: 5432
9999

100-
## postgresqlUsername is the initial user added to the system. This is freqently the
101-
## postgres user. This user will have superuser abilities.
102-
# postgresqlUsername: postgres
103-
104-
## postgresqlPassword the password for postgresqlUsername, if using auto generated
105-
## password make sure to save the password as described in the notes. When upgrading
106-
## you will need to provide this secret otherwise a new secret will be generated but
107-
## not saved in the database.
108-
postgresqlPassword: supersecret
109-
110-
# need more space
111-
persistence:
112-
size: 20Gi
100+
auth:
101+
## enablePostgresUser adds the postgres user This user will have superuser abilities.
102+
# enablePostgresUser: true
103+
104+
## postgresPassword the password for postgres, if using auto generated
105+
## password make sure to save the password as described in the notes. When upgrading
106+
## you will need to provide this secret otherwise a new secret will be generated but
107+
## not saved in the database.
108+
postgresPassword: supersecret
109+
110+
# we will only configure the primary database
111+
primary:
112+
# need more space
113+
persistence:
114+
size: 20Gi
113115

114116
# -------------------------------------------------------------------------------
115117

0 commit comments

Comments
 (0)