From cdce20bb86c307258df1a3943f49e4502c598e33 Mon Sep 17 00:00:00 2001 From: sbaizet <74511063+sbaizet-ledger@users.noreply.github.com> Date: Thu, 19 Sep 2024 09:47:00 +0200 Subject: [PATCH] fix: add waiter init container on init-db job (#172) --- charts/scroll-sdk/Chart.yaml | 2 +- charts/scroll-sdk/README.md | 2 +- charts/scroll-sdk/templates/init-db-job.yaml | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/scroll-sdk/Chart.yaml b/charts/scroll-sdk/Chart.yaml index 13f5c352..0907cc6c 100644 --- a/charts/scroll-sdk/Chart.yaml +++ b/charts/scroll-sdk/Chart.yaml @@ -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: diff --git a/charts/scroll-sdk/README.md b/charts/scroll-sdk/README.md index ca17786c..cb4bea4e 100644 --- a/charts/scroll-sdk/README.md +++ b/charts/scroll-sdk/README.md @@ -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 diff --git a/charts/scroll-sdk/templates/init-db-job.yaml b/charts/scroll-sdk/templates/init-db-job.yaml index c9e28b0d..6f793857 100644 --- a/charts/scroll-sdk/templates/init-db-job.yaml +++ b/charts/scroll-sdk/templates/init-db-job.yaml @@ -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