Skip to content

Commit

Permalink
Merge pull request #75 from opensrp/hapi-fhir-make-env-configurable
Browse files Browse the repository at this point in the history
[hapi fhir] make env configurable
  • Loading branch information
morrismukiri authored Dec 6, 2022
2 parents d2d9062 + db40699 commit c2a494b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/hapi-fhir/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.4.2
version: 0.4.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/hapi-fhir/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The following table lists the configurable parameters of the Hapi-fhir chart and
| `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` | `""` |
| `env` | | `null` |

## Sentry Configuration
Sentry logging has been added to opensrp/hapi-fhir-jpaserver-starter [v5.8.0](https://github.com/opensrp/hapi-fhir-jpaserver-starter/releases/tag/v5.8.0-SNAPSHOT). To enable it update the following configurations:
Expand Down
3 changes: 3 additions & 0 deletions charts/hapi-fhir/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
env:
- name: SPRING_CONFIG_LOCATION
value: /data/hapi-fhir/config/application.yaml
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: 8080
Expand Down
6 changes: 5 additions & 1 deletion charts/hapi-fhir/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ readinessProbe:
port: http
initialDelaySeconds: 60

# Replaces the the existing application configuration file
# Replaces the existing application configuration file
# Reference file: https://github.com/hapifhir/hapi-fhir-jpaserver-starter/blob/master/src/main/resources/application.yaml
# or https://github.com/opensrp/hapi-fhir-jpaserver-starter/blob/master/src/main/resources/application.yaml
# Uses tpl function hence it can read values from references
Expand Down Expand Up @@ -164,3 +164,7 @@ pdb:
enabled: false
minAvailable: ""
maxUnavailable: 1

env:
# - name: JAVA_OPTS
# value: "-XX:+UseStringDeduplication -XX:+UseG1GC"

0 comments on commit c2a494b

Please sign in to comment.