Skip to content

Commit

Permalink
Helm chart fixes (#2374)
Browse files Browse the repository at this point in the history
* add missing postgres user from pg_isready

Signed-off-by: Perttu Salonen <perttu.salonen@nitor.com>

* fix postgresql tag number

Signed-off-by: Perttu Salonen <perttu.salonen@nitor.com>

Signed-off-by: Perttu Salonen <perttu.salonen@nitor.com>
Co-authored-by: Willy Lulciuc <willy@datakin.com>
  • Loading branch information
perttus and wslulciuc authored Jan 26, 2023
1 parent c7c89df commit 74028c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion chart/templates/marquez/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ spec:
- /bin/bash
args:
- -ec
- until pg_isready -h ${POSTGRES_HOST} -p ${POSTGRES_PORT}; do echo waiting for database; sleep 2; done;
- until pg_isready -h ${POSTGRES_HOST} -p ${POSTGRES_PORT} -U ${POSTGRES_USER}; do echo waiting for database; sleep 2; done;
env:
- name: POSTGRES_HOST
value: {{ include "marquez.database.host" . | quote }}
- name: POSTGRES_PORT
value: {{ include "marquez.database.port" . | quote }}
- name: POSTGRES_USER
value: {{ include "marquez.database.user" . | quote }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
Expand Down
2 changes: 1 addition & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ postgresql:
## @param image.tag PostgreSQL image tag (immutable tags are recommended)
##
image:
tag: 0.29.0
tag: 12.1.0
## Authentication parameters
## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#setting-the-root-password-on-first-run
## ref: https://github.com/bitnami/bitnami-docker-postgresql/blob/master/README.md#creating-a-database-on-first-run
Expand Down

0 comments on commit 74028c5

Please sign in to comment.