Skip to content

Commit

Permalink
add init container resources for dhis2 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennsimon authored Mar 2, 2023
1 parent c2a494b commit dcd948a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/dhis2/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions charts/dhis2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | | `{}` |
2 changes: 2 additions & 0 deletions charts/dhis2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions charts/dhis2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,5 @@ pdb:
enabled: false
minAvailable: ""
maxUnavailable: 1

initResources: {}

0 comments on commit dcd948a

Please sign in to comment.