From 95dc61012dcfd17b830cc0eca6d476ab0dcadf3c Mon Sep 17 00:00:00 2001 From: Shubhra Deshpande Date: Fri, 18 Oct 2024 15:55:49 -0400 Subject: [PATCH] pgupgrade: updated old deployment pod to sleep for 10 sec before starting --- .../clairpgupgrade/base/clair-pg-old.deployment.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/kustomize/components/clairpgupgrade/base/clair-pg-old.deployment.yaml b/kustomize/components/clairpgupgrade/base/clair-pg-old.deployment.yaml index 50b4626b0..1bf1e1acf 100644 --- a/kustomize/components/clairpgupgrade/base/clair-pg-old.deployment.yaml +++ b/kustomize/components/clairpgupgrade/base/clair-pg-old.deployment.yaml @@ -27,6 +27,15 @@ spec: - name: postgres-data persistentVolumeClaim: claimName: clair-postgres-13 + initContainers: + - name: check-postgres-scale-down + image: quay.io/sclorg/postgresql-13-c9s:latest + command: + - /bin/sh + - -c + - | + echo "Waiting for 10 seconds before starting the main container..." + sleep 10 containers: - name: postgres image: quay.io/sclorg/postgresql-13-c9s:latest