Skip to content

Commit

Permalink
need to use table and database
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed Jul 23, 2022
1 parent 3a29b79 commit cf267b2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: >
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.2
version: 0.5.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down Expand Up @@ -43,5 +43,4 @@ annotations:
- name: Helm Chart
url: https://github.com/pecanproject/bety-helm
artifacthub.io/changes: |
- use new check image to use PG environment variables
- add-user and load-db are now jobs, not hooks (prevent timeout issues)
- need to check for table before start bety application
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ The command removes all the Kubernetes components associated with the chart and

## ChangeLog

### 0.5.3
- need to check for table before start bety application

### 0.5.2
- use new check image to use PG environment variables
- add-user and load-db are now jobs, not hooks (prevent timeout issues)
Expand Down
4 changes: 3 additions & 1 deletion templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- include "betydb.postgresqlEnv" . | nindent 12 }}
- name: PG_TABLE
- name: PGDATABASE
value: {{ .Values.betyDatabase | quote }}
- name: PG_TABLE
value: "sessions"
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
4 changes: 3 additions & 1 deletion templates/jobs/add-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- include "betydb.postgresqlEnv" . | nindent 12 }}
- name: PG_TABLE
- name: PGDATABASE
value: {{ .Values.betyDatabase | quote }}
- name: PG_TABLE
value: "sessions"
containers:
{{- range $index, $element := .Values.users }}
- name: bety-add-user-{{ $index }}
Expand Down

0 comments on commit cf267b2

Please sign in to comment.