From dcd948adbbbaf517b063dd58cc0020ad7fee5441 Mon Sep 17 00:00:00 2001 From: Benn Simon Date: Thu, 2 Mar 2023 15:33:00 +0300 Subject: [PATCH] add init container resources for dhis2 (#77) --- charts/dhis2/Chart.yaml | 2 +- charts/dhis2/README.md | 1 + charts/dhis2/templates/deployment.yaml | 2 ++ charts/dhis2/values.yaml | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/dhis2/Chart.yaml b/charts/dhis2/Chart.yaml index 0c968ca..de3faa3 100644 --- a/charts/dhis2/Chart.yaml +++ b/charts/dhis2/Chart.yaml @@ -17,7 +17,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.3.2 +version: 0.3.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/dhis2/README.md b/charts/dhis2/README.md index 8e84fa7..0bbf4e8 100644 --- a/charts/dhis2/README.md +++ b/charts/dhis2/README.md @@ -75,3 +75,4 @@ The following table lists the configurable parameters of the Dhis2 chart and the | `pdb.enabled` | `Whether to enable pod disruption budget` | `false` | | `pdb.minAvailable` | `Number of pods that must be available during a disruption. Can be an absolute number or a percentage` | `1` | | `pdb.maxUnavailable` | `Number of pods that can be unavailable during a disruption. Can be an absolute number or a percentage` | `""` | +| `initResources` | | `{}` | diff --git a/charts/dhis2/templates/deployment.yaml b/charts/dhis2/templates/deployment.yaml index acee042..f394614 100644 --- a/charts/dhis2/templates/deployment.yaml +++ b/charts/dhis2/templates/deployment.yaml @@ -35,6 +35,8 @@ spec: subPath: dhis2-conf - name: dhis-web-volume mountPath: /DHIS2_home + resources: + {{- toYaml .Values.initResources | nindent 12 }} volumes: - name: dhis-config-map configMap: diff --git a/charts/dhis2/values.yaml b/charts/dhis2/values.yaml index 9afc5e8..ef0671a 100644 --- a/charts/dhis2/values.yaml +++ b/charts/dhis2/values.yaml @@ -130,3 +130,5 @@ pdb: enabled: false minAvailable: "" maxUnavailable: 1 + +initResources: {}