Skip to content

Commit

Permalink
fix: add waiter init container on init-db job (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaizet-ledger authored Sep 19, 2024
1 parent d9c7b6b commit cdce20b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/scroll-sdk/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: scroll helm charts to deploy scroll sdk
name: scroll-sdk
version: 0.0.33
version: 0.0.34
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/scroll-sdk/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# scroll-sdk

![Version: 0.0.33](https://img.shields.io/badge/Version-0.0.33-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.0.34](https://img.shields.io/badge/Version-0.0.34-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

scroll helm charts to deploy scroll sdk

Expand Down
8 changes: 8 additions & 0 deletions charts/scroll-sdk/templates/init-db-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ metadata:
spec:
template:
spec:
initContainers:
- name: 1-wait-for-postgres
image: atkrad/wait4x:latest
args:
- tcp
- postgresql:5432
- --timeout
- "0"
containers:
- name: init-db
image: postgres:latest
Expand Down

0 comments on commit cdce20b

Please sign in to comment.