Skip to content

Commit

Permalink
Merge pull request #46 from opensrp/add-application-config
Browse files Browse the repository at this point in the history
[Helm Chart] add configuration for spring application json
  • Loading branch information
ndegwamartin authored Oct 5, 2023
2 parents 3355855 + 09bbb5f commit 00a4bea
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/fhir-gateway/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ 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.0.3
version: 0.0.4

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.1"
appVersion: "v0.1.40"
1 change: 1 addition & 0 deletions charts/fhir-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ and their default values.
| `vpa.enabled` | | `false` |
| `vpa.updatePolicy.updateMode` | | `"Off"` |
| `vpa.resourcePolicy` | | `{}` |
| `applicationConfig` | | `null` |

## Overriding Configuration File On Pod Using ConfigMaps

Expand Down
4 changes: 4 additions & 0 deletions charts/fhir-gateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.env }}
env:
{{- if .Values.applicationConfig }}
- name: SPRING_APPLICATION_JSON
value: {{ .Values.applicationConfig | toJson | quote }}
{{- end }}
{{- tpl (toYaml .Values.env) . | nindent 12 }}
{{- end }}
ports:
Expand Down
8 changes: 7 additions & 1 deletion charts/fhir-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image:
repository: opensrp/fhir-gateway
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
tag: "v0.1.40"

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -153,6 +153,12 @@ pdb:
minAvailable: ""
maxUnavailable: 1

# Add the spring configuration below check https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.properties-and-configuration.
applicationConfig:
# server:
# max-http-header-size: 40KB
# spring:

vpa:
enabled: false
updatePolicy:
Expand Down

0 comments on commit 00a4bea

Please sign in to comment.