From cd85772884c2907fdad33e837c648db23c023f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 5 Jun 2024 12:20:10 +0200 Subject: [PATCH] chore: manifest.yaml lifecycle test --- manifest.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.yaml b/manifest.yaml index 80c7c62..59d16a6 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -184,6 +184,10 @@ spec: metadata: labels: app: ${CI_PROJECT_PATH_SLUG}-app + lifecycle: + PreStop: + exec: + command: ["/bin/sh","-c","kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done"] spec: containers: - name: ${CI_PROJECT_PATH_SLUG}-queue-worker @@ -196,10 +200,6 @@ spec: - "bash" args: - "k8s-queues.sh" - lifecycle: - PreStop: - exec: - command: ["/bin/sh","-c","kill -s TERM 1; while test $(ps ax | grep -v grep | grep bash | wc -l) -gt 0; do sleep 2s; done"] envFrom: - configMapRef: name: ${CI_PROJECT_PATH_SLUG}-config-map