Skip to content

Commit d9e11d1

Browse files
committed
fix: use variable for pod readiness and liveness probe script
1 parent ca71755 commit d9e11d1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

controllers/spec/template/yaml/PrimaryStatefulSetTemplate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ spec:
6868
command:
6969
- sh
7070
- -c
71-
- exec pg_isready -U postgres -h $POD_IP
71+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
7272
failureThreshold: 10
7373
initialDelaySeconds: 60
7474
periodSeconds: 20
@@ -80,7 +80,7 @@ spec:
8080
command:
8181
- sh
8282
- -c
83-
- exec pg_isready -U postgres -h $POD_IP
83+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
8484
failureThreshold: 3
8585
initialDelaySeconds: 5
8686
periodSeconds: 10

controllers/spec/template/yaml/ReplicaStatefulSetTemplate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ spec:
9090
command:
9191
- sh
9292
- -c
93-
- exec pg_isready -U postgres -h $POD_IP
93+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
9494
failureThreshold: 10
9595
initialDelaySeconds: 60
9696
periodSeconds: 20
@@ -102,7 +102,7 @@ spec:
102102
command:
103103
- sh
104104
- -c
105-
- exec pg_isready -U postgres -h $POD_IP
105+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
106106
failureThreshold: 3
107107
initialDelaySeconds: 5
108108
periodSeconds: 10

controllers/spec/template/yaml/Templates.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ spec:
405405
command:
406406
- sh
407407
- -c
408-
- exec pg_isready -U postgres -h $POD_IP
408+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
409409
failureThreshold: 10
410410
initialDelaySeconds: 60
411411
periodSeconds: 20
@@ -417,7 +417,7 @@ spec:
417417
command:
418418
- sh
419419
- -c
420-
- exec pg_isready -U postgres -h $POD_IP
420+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
421421
failureThreshold: 3
422422
initialDelaySeconds: 5
423423
periodSeconds: 10
@@ -553,7 +553,7 @@ spec:
553553
command:
554554
- sh
555555
- -c
556-
- exec pg_isready -U postgres -h $POD_IP
556+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
557557
failureThreshold: 10
558558
initialDelaySeconds: 60
559559
periodSeconds: 20
@@ -565,7 +565,7 @@ spec:
565565
command:
566566
- sh
567567
- -c
568-
- exec pg_isready -U postgres -h $POD_IP
568+
- exec pg_isready -U $POSTGRES_USER -h $POD_IP
569569
failureThreshold: 3
570570
initialDelaySeconds: 5
571571
periodSeconds: 10

0 commit comments

Comments
 (0)