File tree Expand file tree Collapse file tree 5 files changed +17
-4
lines changed
Expand file tree Collapse file tree 5 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1- ## 1.0.0-beta3
1+ ## 1.0.0-beta4
22
33- Breaking Changes
44 - Drupal 7 Chart has been removed
Original file line number Diff line number Diff line change 11name : drupal
22apiVersion : v2
33type : application
4- version : 1.0.0-beta3
4+ version : 1.0.0-beta4
55appVersion : 5.0.1
66description : Drupal 9/10 variant of the Web Experience Toolkit (WxT).
77keywords :
Original file line number Diff line number Diff line change 5555
5656 # Pre Install scripts
5757 {{- if .Values.drupal.cron.preInstallScripts }}
58- {{ .Values.drupal.cron.preInstallScripts | nindent 16 }}
58+ {{ toYaml .Values.drupal.cron.preInstallScripts | nindent 16 }}
5959 {{- end }}
6060
6161 # Wait for DB to be available
6565 # Check Drush status
6666 drush status
6767
68+ # Cleanup old backups
69+ {{- if .Values.drupal.backup.cleanup.enabled }}
70+ find /backup/ -mindepth 1 -maxdepth 1 -type d -mtime +30 -exec echo "rm -rf " {} \; 2>&1;
71+ find /backup/ -mindepth 1 -maxdepth 1 -type d -mtime +30 -exec rm -rf {} \; 2>&1;
72+ {{- end }}
73+
6874 # Run cron
6975 BACKUPNAME=$(date +%Y%m%d.%H%M%S)
7076 mkdir -p /backup/$BACKUPNAME
8894 {{- if .Values.drupal.volumeMounts }}
8995 {{- include "common.tplvalues.render" (dict "value" .Values.drupal.volumeMounts "context" $) | nindent 14 }}
9096 {{- end }}
97+ {{- if .Values.drupal.backup.enabled }}
98+ - name : backup
99+ mountPath : /backup
100+ {{- end }}
91101 {{- include "drupal.connectionPooler" . | nindent 10 }}
92102 {{- if .Values.drupal.imagePullSecrets }}
93103 imagePullSecrets :
Original file line number Diff line number Diff line change 5555
5656 # Pre Install scripts
5757 {{- if .Values.drupal.cron.preInstallScripts }}
58- {{ .Values.drupal.cron.preInstallScripts | nindent 16 }}
58+ {{ toYaml .Values.drupal.cron.preInstallScripts | nindent 16 }}
5959 {{- end }}
6060
6161 # Wait for DB to be available
Original file line number Diff line number Diff line change @@ -213,6 +213,9 @@ drupal:
213213 # When enabled, a CronJob will run the job based on the schedule
214214 enabled : false
215215
216+ cleanup :
217+ enabled : false
218+
216219 # CronJob schedule (standard cron syntax)
217220 # Defaults to midnight
218221 schedule : ' 0 0 * * *'
You can’t perform that action at this time.
0 commit comments