Browse Source

Allow changing Zeo Pack keep_days setting

master
Fábio Kaiser Rauber 4 years ago
parent
commit
438121ae4c
  1. 8
      charts/portalmodelo/v0.5.0/questions.yaml
  2. 2
      charts/portalmodelo/v0.5.0/templates/zeopack-cronjob.yaml
  3. 1
      charts/portalmodelo/v0.5.0/values.yaml

8
charts/portalmodelo/v0.5.0/questions.yaml

@ -115,4 +115,12 @@ questions:
label: "ZEO Pack Cron"
required: false
group: Avançado
- variable: instance.zeopack.keepDays
default: 7
type: int
description: "Dias de operações a manter após o Pack do ZODB"
label: "ZEO Pack Keep Days"
required: false
group: Avançado

2
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"
- "python /docker-initialize.py && /plone/instance/bin/zeopack -D {{ .Values.instance.zeopack.keepDays }}"
env:
- name: ZEO_ADDRESS
value: {{ template "portalmodelo.fullname" . }}-zeoserver:8100

1
charts/portalmodelo/v0.5.0/values.yaml

@ -36,6 +36,7 @@ instance:
zeopack:
enabled: true
schedule: "0 1 * * SUN" # Every Sunday at 1AM
keepDays: 7
podAnnotations: {}

Loading…
Cancel
Save