Skip to content

Commit d0a67ec

Browse files
authored
Merge pull request #1 from LinuxForHealth/lee-main
allow user to set schemaMigration container resources
2 parents 4646ea3 + f322cd0 commit d0a67ec

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

charts/fhir-server/Chart.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: Helm chart for the LinuxForHealth FHIR Server
33
name: fhir-server
4-
version: 0.8.0
4+
version: 0.8.1
55
appVersion: 5.0.0
66
dependencies:
77
- name: postgresql
@@ -25,7 +25,7 @@ annotations:
2525
artifacthub.io/changes: |
2626
# When using the list of objects option the valid supported kinds are
2727
# added, changed, deprecated, removed, fixed, and security.
28+
- kind: fixed
29+
description: schematool should use its own container resources config
2830
- kind: changed
29-
description: renamed chart from ibm-fhir-server to just fhir-server
30-
- kind: changed
31-
description: updated images from ibmcom/ibm-fhir-* to ghcr.io/linuxforhealth/fhir-*
31+
description: updated default requests and limits for schematool job

charts/fhir-server/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.0.0](https://img.shields.io/badge/AppVersion-5.0.0-informational?style=flat-square)
2+
![Version: 0.8.1](https://img.shields.io/badge/Version-0.8.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 5.0.0](https://img.shields.io/badge/AppVersion-5.0.0-informational?style=flat-square)
33

44
# The LinuxForHealth FHIR Server Helm Chart
55

@@ -347,7 +347,7 @@ If a truststore Secret is specified, the default truststore file will be replace
347347
| schemaMigration.image.pullSecret | string | `"all-icr-io"` | |
348348
| schemaMigration.image.repository | string | `"ghcr.io/linuxforhealth/fhir-schematool"` | The repository to pull the LinuxForHealth FHIR Schema Tool image from |
349349
| schemaMigration.image.tag | string | this chart's appVersion | LinuxForHealth FHIR Schema Tool container image tag |
350-
| schemaMigration.resources | object | `{}` | container resources for the schema migration job |
350+
| schemaMigration.resources | object | `{"limits":{"ephemeral-storage":"256Mi","memory":"256Mi"},"requests":{"ephemeral-storage":"64Mi","memory":"64Mi"}}` | container resources for the schema migration job |
351351
| schemaMigration.ttlSecondsAfterFinished | int | `100` | How many seconds to wait before cleaning up a finished schema migration job. This automatic clean-up can have unintended interactions with CI tools like ArgoCD; setting this value to nil will disable the feature. |
352352
| security.jwtValidation.audience | string | `"https://{{ tpl $.Values.ingress.hostname $ }}/fhir-server/api/v4"` | |
353353
| security.jwtValidation.enabled | bool | `false` | |

charts/fhir-server/templates/schematool.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ spec:
6565
runAsUser: 1001
6666
runAsGroup: 1001
6767
resources:
68-
{{ toYaml .Values.resources | nindent 12 }}
68+
{{ toYaml .Values.schemaMigration.resources | nindent 12 }}
6969
volumeMounts:
7070
{{- with .Values.extraVolumeMounts }}
7171
{{- tpl . $ | nindent 12 }}

charts/fhir-server/values.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,13 @@ schemaMigration:
246246
pullPolicy: IfNotPresent
247247
pullSecret: all-icr-io
248248
# -- container resources for the schema migration job
249-
resources: {}
249+
resources:
250+
requests:
251+
memory: "64Mi"
252+
ephemeral-storage: "64Mi"
253+
limits:
254+
memory: "256Mi"
255+
ephemeral-storage: "256Mi"
250256
# -- How many seconds to wait before cleaning up a finished schema migration job.
251257
# This automatic clean-up can have unintended interactions with CI tools like ArgoCD;
252258
# setting this value to nil will disable the feature.

0 commit comments

Comments
 (0)