[chart] Use the same pg_isready invocation as in the subchart

Change-Id: I0bbe883fd1877f9d63a382e13da23765fdf1bbb2
This commit is contained in:
Radosław Piliszek 2024-04-04 10:34:46 +02:00
parent d2b7338624
commit ad8c621f5f

View File

@ -30,7 +30,7 @@ spec:
initContainers:
- name: wait-for-postgresql
image: docker.io/bitnami/postgresql:16.2.0-debian-12-r8
command: ['sh', '-c', 'until pg_isready -h nebulous-overlay-network-manager-postgresql -p 5432; do echo waiting for database; sleep 2; done;']
command: ['sh', '-c', 'until pg_isready -U postgresql -d dbname=postgres -h nebulous-overlay-network-manager-postgresql -p 5432; do echo waiting for database; sleep 2; done;']
containers:
- name: {{ .Chart.Name }}
securityContext: