Skip to content

Commit 5e9aa13

Browse files
committed
feat(release): Release of v1.0.0-beta4
1 parent 2bf8171 commit 5e9aa13

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.0.0-beta3
1+
## 1.0.0-beta4
22

33
- Breaking Changes
44
- Drupal 7 Chart has been removed

charts/drupal/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: drupal
22
apiVersion: v2
33
type: application
4-
version: 1.0.0-beta3
4+
version: 1.0.0-beta4
55
appVersion: 5.0.1
66
description: Drupal 9/10 variant of the Web Experience Toolkit (WxT).
77
keywords:

charts/drupal/templates/cronjob/drupal-backup.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
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
@@ -65,6 +65,12 @@ spec:
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
@@ -88,6 +94,10 @@ spec:
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:

charts/drupal/templates/cronjob/drupal.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ spec:
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

charts/drupal/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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 * * *'

0 commit comments

Comments
 (0)