Skip to content

Commit cf267b2

Browse files
committed
need to use table and database
1 parent 3a29b79 commit cf267b2

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

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.5.2
15+
version: 0.5.3
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-
- use new check image to use PG environment variables
47-
- add-user and load-db are now jobs, not hooks (prevent timeout issues)
46+
- need to check for table before start bety application

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ The command removes all the Kubernetes components associated with the chart and
124124

125125
## ChangeLog
126126

127+
### 0.5.3
128+
- need to check for table before start bety application
129+
127130
### 0.5.2
128131
- use new check image to use PG environment variables
129132
- add-user and load-db are now jobs, not hooks (prevent timeout issues)

templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ spec:
4242
imagePullPolicy: {{ .Values.image.pullPolicy }}
4343
env:
4444
{{- include "betydb.postgresqlEnv" . | nindent 12 }}
45-
- name: PG_TABLE
45+
- name: PGDATABASE
4646
value: {{ .Values.betyDatabase | quote }}
47+
- name: PG_TABLE
48+
value: "sessions"
4749
containers:
4850
- name: {{ .Chart.Name }}
4951
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"

templates/jobs/add-user.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ spec:
3131
imagePullPolicy: {{ .Values.image.pullPolicy }}
3232
env:
3333
{{- include "betydb.postgresqlEnv" . | nindent 12 }}
34-
- name: PG_TABLE
34+
- name: PGDATABASE
3535
value: {{ .Values.betyDatabase | quote }}
36+
- name: PG_TABLE
37+
value: "sessions"
3638
containers:
3739
{{- range $index, $element := .Values.users }}
3840
- name: bety-add-user-{{ $index }}

0 commit comments

Comments
 (0)