From 623426c67f2abe3fa08b17a0cb2a812c47be89e5 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Fri, 9 Oct 2020 16:21:14 -0300 Subject: [PATCH] Add random sleep time before packing --- charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml b/charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml index 1756da3..b730b34 100644 --- a/charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml +++ b/charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml @@ -29,7 +29,7 @@ spec: - "/bin/bash" - "-c" args: - - "python /docker-initialize.py && /plone/instance/bin/zeopack -D {{ .Values.instance.zeopack.keepDays }}" + - "sleep \"$[ ( $RANDOM % 90 ) + 1 ]m\" && python /docker-initialize.py && /plone/instance/bin/zeopack -D {{ .Values.instance.zeopack.keepDays }}" env: - name: ZEO_ADDRESS value: {{ template "portalmodelo.fullname" . }}-zeoserver:8100