Skip to content

Commit b717eaa

Browse files
committed
feat(drupal): Add resources for cronjob
1 parent 87eaed2 commit b717eaa

4 files changed

Lines changed: 19 additions & 5 deletions

File tree

charts/drupal/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# drupal
22

3-
![Version: 2.0.0-beta1](https://img.shields.io/badge/Version-2.0.0--beta1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.1.4](https://img.shields.io/badge/AppVersion-6.1.4-informational?style=flat-square)
3+
![Version: 2.0.0-beta4](https://img.shields.io/badge/Version-2.0.0--beta4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.1.4](https://img.shields.io/badge/AppVersion-6.1.4-informational?style=flat-square)
44

55
Helm Chart for deploying an enterprise-grade Drupal environment.
66

@@ -112,6 +112,7 @@ helm install --name drupal -f values-<override>.yaml
112112
| drupal.healthcheck.probes.readinessProbe.timeoutSeconds | int | `1` | |
113113
| drupal.image | string | `"drupalwxt/site-wxt"` | |
114114
| drupal.imagePullPolicy | string | `"IfNotPresent"` | |
115+
| drupal.initContainerImage | string | `"alpine:3.10"` | |
115116
| drupal.install | bool | `true` | |
116117
| drupal.migrate | bool | `true` | |
117118
| drupal.nodeSelector | object | `{}` | |
@@ -127,7 +128,11 @@ helm install --name drupal -f values-<override>.yaml
127128
| drupal.preInstallScripts | string | `""` | |
128129
| drupal.preUpgradeScripts | string | `""` | |
129130
| drupal.profile | string | `"wxt"` | |
130-
| drupal.reconfigure | bool | `true` | |
131+
| drupal.reconfigure.enabled | bool | `true` | |
132+
| drupal.reconfigure.resources.limits.cpu | string | `"250m"` | |
133+
| drupal.reconfigure.resources.limits.memory | string | `"512Mi"` | |
134+
| drupal.reconfigure.resources.requests.cpu | string | `"50m"` | |
135+
| drupal.reconfigure.resources.requests.memory | string | `"256Mi"` | |
131136
| drupal.replicas | int | `1` | |
132137
| drupal.resources | object | `{}` | |
133138
| drupal.restore.convert | bool | `false` | |

charts/drupal/templates/job/post-upgrade-reconfigure.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.drupal.reconfigure }}
1+
{{- if .Values.drupal.reconfigure.enabled }}
22
apiVersion: batch/v1
33
kind: Job
44
metadata:

charts/drupal/values.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,16 @@ drupal:
160160
migrate: true
161161

162162
# Reconfigure on upgrade
163-
reconfigure: true
163+
reconfigure:
164+
enabled: true
165+
resources:
166+
limits:
167+
cpu: 250m
168+
memory: 512Mi
169+
requests:
170+
cpu: 50m
171+
memory: 256Mi
172+
164173
cacheRebuildBeforeDatabaseMigration: true
165174
updateDBBeforeDatabaseMigration: true
166175

charts/varnish/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# varnish
22

3-
![Version: 0.2.5](https://img.shields.io/badge/Version-0.2.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.6.0](https://img.shields.io/badge/AppVersion-6.6.0-informational?style=flat-square)
3+
![Version: 0.2.5](https://img.shields.io/badge/Version-0.2.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.6.2](https://img.shields.io/badge/AppVersion-6.6.2-informational?style=flat-square)
44

55
A Helm chart for using Varnish.
66

0 commit comments

Comments
 (0)