Browse Source

Add random sleep time before packing

master
Fábio Kaiser Rauber 4 years ago
parent
commit
623426c67f
  1. 2
      charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml

2
charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml

@ -29,7 +29,7 @@ spec:
- "/bin/bash" - "/bin/bash"
- "-c" - "-c"
args: 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: env:
- name: ZEO_ADDRESS - name: ZEO_ADDRESS
value: {{ template "portalmodelo.fullname" . }}-zeoserver:8100 value: {{ template "portalmodelo.fullname" . }}-zeoserver:8100

Loading…
Cancel
Save