Skip to content

Commit 602177e

Browse files
fix: pg_isready sslmode use
Signed-off-by: Guillaume OUINT <[email protected]>
1 parent c97ff62 commit 602177e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

charts/cadence/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: cadence
3-
version: 1.1.0
3+
version: 1.1.1
44
appVersion: v1.3.6
55

66
description: |

charts/cadence/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cadence
22

3-
![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.3.6](https://img.shields.io/badge/AppVersion-v1.3.6-informational?style=flat-square)
3+
![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.3.6](https://img.shields.io/badge/AppVersion-v1.3.6-informational?style=flat-square)
44

55
Cadence is a distributed, scalable, durable, and highly available orchestration engine
66
to execute asynchronous long-running business logic in a scalable and resilient way.

charts/cadence/templates/server-deployment.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,11 @@ spec:
338338
339339
# Wait for PostgreSQL to be ready
340340
echo "Waiting for PostgreSQL to be ready..."
341-
until pg_isready -h $DB_HOST -p $DB_PORT -U $DB_USER; do
341+
until pg_isready -d "host=$DB_HOST \
342+
port=$DB_PORT \
343+
dbname=$DB_NAME \
344+
user=$DB_USER \
345+
sslmode=${SSL_MODE:-disable}"; do
342346
echo 'PostgreSQL is not ready yet...'
343347
sleep 5
344348
done

0 commit comments

Comments
 (0)