From aca5800016c0e87ff7957d5b95425195dccf8a6b Mon Sep 17 00:00:00 2001 From: siddhant2001 Date: Tue, 17 Dec 2024 15:55:44 +0530 Subject: [PATCH] add 5 minute sleep before execution --- helm/templates/job.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helm/templates/job.yaml b/helm/templates/job.yaml index 17144ea..5c02e62 100644 --- a/helm/templates/job.yaml +++ b/helm/templates/job.yaml @@ -91,10 +91,11 @@ spec: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + command: [ "sh", "-c" ] {{- if (eq .Values.job.prefix "all") }} - args: [ "-c", "/etc/config-bootstrapper/application.conf", "-C", "/app/resources/configs/config-bootstrapper", "--upgrade" ] + args: [ "sleep 300; /app/config-bootstrapper -c /etc/config-bootstrapper/application.conf -C /app/resources/configs/config-bootstrapper --upgrade" ] {{- else }} - args: [ "-c", "/etc/config-bootstrapper/application.conf", "-C", "/app/resources/configs/config-bootstrapper/{{ .Values.job.prefix }}-service", "--upgrade" ] + args: [ "sleep 300; /app/config-bootstrapper -c /etc/config-bootstrapper/application.conf -C /app/resources/configs/config-bootstrapper/{{ .Values.job.prefix }}-service --upgrade" ] {{- end }} env: - name: SERVICE_NAME