From b04ade4105a92704e37587bcaf12d943c00ee699 Mon Sep 17 00:00:00 2001 From: Karan Parashar Date: Thu, 24 Sep 2026 22:07:48 +0530 Subject: [PATCH] fix(apps): Wait for database and bump splitpro image --- apps/splitpro/deployment.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/splitpro/deployment.yaml b/apps/splitpro/deployment.yaml index 3ae02a6..887a1a3 100644 --- a/apps/splitpro/deployment.yaml +++ b/apps/splitpro/deployment.yaml @@ -36,7 +36,7 @@ spec: envFrom: - secretRef: name: splitpro - image: ghcr.io/whyredfire/splitpro:62e724ee02accaf3dfca7965f9bd778eb44b1271 + image: ghcr.io/whyredfire/splitpro:529739ab7f506ce258f6d09596ed8bb0833c20c1 livenessProbe: httpGet: path: /api/auth/providers @@ -75,6 +75,19 @@ spec: name: cache - mountPath: /tmp name: tmp + initContainers: + - command: + - sh + - -c + - until nc -z -w 2 splitpro-db-rw 5432; do echo waiting for database; sleep 2; done + image: ghcr.io/whyredfire/splitpro:529739ab7f506ce258f6d09596ed8bb0833c20c1 + name: wait-for-db + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true securityContext: fsGroup: 1000 runAsGroup: 1000