diff --git a/Chart.yaml b/Chart.yaml index 0d7e1f2d..3456e25d 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -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 @@ -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 diff --git a/README.md b/README.md index 19b35484..c03bb8f2 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 1ed3cf38..b9027786 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -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 }}" diff --git a/templates/jobs/add-user.yaml b/templates/jobs/add-user.yaml index 40011564..5daa249f 100644 --- a/templates/jobs/add-user.yaml +++ b/templates/jobs/add-user.yaml @@ -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 }}