Helm chart dependency updates and support for extraVolumes and -Mounts (#766)
* Helm chart updates * set target branch to master for chart testing
This commit is contained in:
1
.github/ct/config.yaml
vendored
1
.github/ct/config.yaml
vendored
@@ -12,3 +12,4 @@ upgrade: true
|
|||||||
skip-missing-values: true
|
skip-missing-values: true
|
||||||
release-label: release
|
release-label: release
|
||||||
release-name-template: "helm-v{{ .Version }}"
|
release-name-template: "helm-v{{ .Version }}"
|
||||||
|
target-branch: master
|
||||||
|
|||||||
4
.github/workflows/chart-test.yaml
vendored
4
.github/workflows/chart-test.yaml
vendored
@@ -10,7 +10,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
container: quay.io/helmpack/chart-testing:v3.10.1@sha256:7d8a7f99fc5840142249cc33ed6d9752fc66b92f9e1bf792d987ee85227d84da
|
container: quay.io/helmpack/chart-testing:v3.11.0@sha256:f2fd21d30b64411105c7eafb1862783236a219d29f2292219a09fe94ca78ad2a
|
||||||
steps:
|
steps:
|
||||||
- name: Install helm-docs
|
- name: Install helm-docs
|
||||||
working-directory: /tmp
|
working-directory: /tmp
|
||||||
@@ -41,7 +41,7 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
k8s-version: [1.29.8, 1.30.4, 1.31.0]
|
k8s-version: [1.30.8, 1.31.4, 1.32.0]
|
||||||
needs:
|
needs:
|
||||||
- lint
|
- lint
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
version: 15.5.22
|
version: 16.3.2
|
||||||
digest: sha256:513750151f1497acfe6ba07fb1833b8d945ca19094f83018d34b339b666a2d56
|
- name: common
|
||||||
generated: "2024-08-18T18:30:23.392457144+02:00"
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
|
version: 2.28.0
|
||||||
|
digest: sha256:99587bb3481cd94c1679d9dd23cb8c816701a1c6f0d458c77c71e7e541dd2f55
|
||||||
|
generated: "2024-12-17T12:51:15.601470579+01:00"
|
||||||
|
|||||||
@@ -7,11 +7,14 @@ sources:
|
|||||||
- https://github.com/hapifhir/hapi-fhir-jpaserver-starter
|
- https://github.com/hapifhir/hapi-fhir-jpaserver-starter
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
version: 15.5.22
|
version: 16.3.2
|
||||||
repository: oci://registry-1.docker.io/bitnamicharts
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
condition: postgresql.enabled
|
condition: postgresql.enabled
|
||||||
appVersion: 7.2.0
|
- name: common
|
||||||
version: 0.17.1
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
|
version: 2.28.0
|
||||||
|
appVersion: 7.6.0
|
||||||
|
version: 0.18.0
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/license: Apache-2.0
|
artifacthub.io/license: Apache-2.0
|
||||||
artifacthub.io/containsSecurityUpdates: "false"
|
artifacthub.io/containsSecurityUpdates: "false"
|
||||||
@@ -24,6 +27,14 @@ annotations:
|
|||||||
# When using the list of objects option the valid supported kinds are
|
# When using the list of objects option the valid supported kinds are
|
||||||
# added, changed, deprecated, removed, fixed, and security.
|
# added, changed, deprecated, removed, fixed, and security.
|
||||||
- kind: changed
|
- kind: changed
|
||||||
description: updated curlimages/curl to 8.9.1
|
description: "updated postgresql sub-chart to 16.3.2"
|
||||||
- kind: changed
|
- kind: changed
|
||||||
description: "updated postgresql sub-chart to 15.5.22."
|
description: "updated curlimages/curl to 8.11.1"
|
||||||
|
- kind: changed
|
||||||
|
description: "updated hapiproject/hapi to 7.6.0"
|
||||||
|
- kind: added
|
||||||
|
description: "support for setting resource limits and requests from presets. With a default set for all containers"
|
||||||
|
- kind: added
|
||||||
|
description: "support for setting extra volumes and volume mounts"
|
||||||
|
- kind: changed
|
||||||
|
description: "set default pod security context for main and test pods"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# HAPI FHIR JPA Server Starter Helm Chart
|
# HAPI FHIR JPA Server Starter Helm Chart
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
This helm chart will help you install the HAPI FHIR JPA Server in a Kubernetes environment.
|
This helm chart will help you install the HAPI FHIR JPA Server in a Kubernetes environment.
|
||||||
|
|
||||||
@@ -15,7 +15,8 @@ helm install hapi-fhir-jpaserver hapifhir/hapi-fhir-jpaserver
|
|||||||
|
|
||||||
| Repository | Name | Version |
|
| Repository | Name | Version |
|
||||||
|------------|------|---------|
|
|------------|------|---------|
|
||||||
| oci://registry-1.docker.io/bitnamicharts | postgresql | 15.5.22 |
|
| oci://registry-1.docker.io/bitnamicharts | common | 2.28.0 |
|
||||||
|
| oci://registry-1.docker.io/bitnamicharts | postgresql | 16.3.2 |
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
@@ -32,11 +33,13 @@ helm install hapi-fhir-jpaserver hapifhir/hapi-fhir-jpaserver
|
|||||||
| externalDatabase.user | string | `"fhir"` | username for the external database |
|
| externalDatabase.user | string | `"fhir"` | username for the external database |
|
||||||
| extraConfig | string | `""` | additional Spring Boot application config. Mounted as a file and automatically loaded by the application. |
|
| extraConfig | string | `""` | additional Spring Boot application config. Mounted as a file and automatically loaded by the application. |
|
||||||
| extraEnv | list | `[]` | extra environment variables to set on the server container |
|
| extraEnv | list | `[]` | extra environment variables to set on the server container |
|
||||||
|
| extraVolumeMounts | list | `[]` | Optionally specify extra list of additional volumeMounts |
|
||||||
|
| extraVolumes | list | `[]` | Optionally specify extra list of additional volumes |
|
||||||
| fullnameOverride | string | `""` | override the chart fullname |
|
| fullnameOverride | string | `""` | override the chart fullname |
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | image pullPolicy to use |
|
| image.pullPolicy | string | `"IfNotPresent"` | image pullPolicy to use |
|
||||||
| image.registry | string | `"docker.io"` | registry where the HAPI FHIR server image is hosted |
|
| image.registry | string | `"docker.io"` | registry where the HAPI FHIR server image is hosted |
|
||||||
| image.repository | string | `"hapiproject/hapi"` | the path inside the repository |
|
| image.repository | string | `"hapiproject/hapi"` | the path inside the repository |
|
||||||
| image.tag | string | `"v7.2.0@sha256:9bcafa8342b572eee248cb7c48c496863d352bbd0347e1d98ea238d09620e89b"` | the image tag. As of v5.7.0, this is the `distroless` flavor by default, add `-tomcat` to use the Tomcat-based image. |
|
| image.tag | string | `"v7.6.0@sha256:4771a178e764896c83881c1b3a52bd487e53d06e1acc3653ea0db0c6f6b2b8a1"` | the image tag. As of v5.7.0, this is the `distroless` flavor by default, add `-tomcat` to use the Tomcat-based image. |
|
||||||
| imagePullSecrets | list | `[]` | image pull secrets to use when pulling the image |
|
| imagePullSecrets | list | `[]` | image pull secrets to use when pulling the image |
|
||||||
| ingress.annotations | object | `{}` | provide any additional annotations which may be required. Evaluated as a template. |
|
| ingress.annotations | object | `{}` | provide any additional annotations which may be required. Evaluated as a template. |
|
||||||
| ingress.enabled | bool | `false` | whether to create an Ingress to expose the FHIR server HTTP endpoint |
|
| ingress.enabled | bool | `false` | whether to create an Ingress to expose the FHIR server HTTP endpoint |
|
||||||
@@ -44,6 +47,8 @@ helm install hapi-fhir-jpaserver hapifhir/hapi-fhir-jpaserver
|
|||||||
| ingress.hosts[0].pathType | string | `"ImplementationSpecific"` | |
|
| ingress.hosts[0].pathType | string | `"ImplementationSpecific"` | |
|
||||||
| ingress.hosts[0].paths[0] | string | `"/"` | |
|
| ingress.hosts[0].paths[0] | string | `"/"` | |
|
||||||
| ingress.tls | list | `[]` | ingress TLS config |
|
| ingress.tls | list | `[]` | ingress TLS config |
|
||||||
|
| initContainers.resources | object | `{}` | configure the init containers pods resource requests and limits |
|
||||||
|
| initContainers.resourcesPreset | string | `"nano"` | set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if `resources` is set (`resources` is recommended for production). More information: <https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15> |
|
||||||
| metrics.service.port | int | `8081` | |
|
| metrics.service.port | int | `8081` | |
|
||||||
| metrics.serviceMonitor.additionalLabels | object | `{}` | additional labels to apply to the ServiceMonitor object, e.g. `release: prometheus` |
|
| metrics.serviceMonitor.additionalLabels | object | `{}` | additional labels to apply to the ServiceMonitor object, e.g. `release: prometheus` |
|
||||||
| metrics.serviceMonitor.enabled | bool | `false` | if enabled, creates a ServiceMonitor instance for Prometheus Operator-based monitoring |
|
| metrics.serviceMonitor.enabled | bool | `false` | if enabled, creates a ServiceMonitor instance for Prometheus Operator-based monitoring |
|
||||||
@@ -53,12 +58,13 @@ helm install hapi-fhir-jpaserver hapifhir/hapi-fhir-jpaserver
|
|||||||
| podDisruptionBudget.enabled | bool | `false` | Enable PodDisruptionBudget for the server pods. uses policy/v1/PodDisruptionBudget thus requiring k8s 1.21+ |
|
| podDisruptionBudget.enabled | bool | `false` | Enable PodDisruptionBudget for the server pods. uses policy/v1/PodDisruptionBudget thus requiring k8s 1.21+ |
|
||||||
| podDisruptionBudget.maxUnavailable | string | `""` | maximum unavailable instances |
|
| podDisruptionBudget.maxUnavailable | string | `""` | maximum unavailable instances |
|
||||||
| podDisruptionBudget.minAvailable | int | `1` | minimum available instances |
|
| podDisruptionBudget.minAvailable | int | `1` | minimum available instances |
|
||||||
| podSecurityContext | object | `{}` | pod security context |
|
| podSecurityContext | object | `{"fsGroup":65532,"fsGroupChangePolicy":"OnRootMismatch","runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532,"seccompProfile":{"type":"RuntimeDefault"}}` | pod security context |
|
||||||
| postgresql.auth.database | string | `"fhir"` | name for a custom database to create |
|
| postgresql.auth.database | string | `"fhir"` | name for a custom database to create |
|
||||||
| postgresql.auth.existingSecret | string | `""` | Name of existing secret to use for PostgreSQL credentials `auth.postgresPassword`, `auth.password`, and `auth.replicationPassword` will be ignored and picked up from this secret The secret must contain the keys `postgres-password` (which is the password for "postgres" admin user), `password` (which is the password for the custom user to create when `auth.username` is set), and `replication-password` (which is the password for replication user). The secret might also contains the key `ldap-password` if LDAP is enabled. `ldap.bind_password` will be ignored and picked from this secret in this case. The value is evaluated as a template. |
|
| postgresql.auth.existingSecret | string | `""` | Name of existing secret to use for PostgreSQL credentials `auth.postgresPassword`, `auth.password`, and `auth.replicationPassword` will be ignored and picked up from this secret The secret must contain the keys `postgres-password` (which is the password for "postgres" admin user), `password` (which is the password for the custom user to create when `auth.username` is set), and `replication-password` (which is the password for replication user). The secret might also contains the key `ldap-password` if LDAP is enabled. `ldap.bind_password` will be ignored and picked from this secret in this case. The value is evaluated as a template. |
|
||||||
| postgresql.enabled | bool | `true` | enable an included PostgreSQL DB. see <https://github.com/bitnami/charts/tree/master/bitnami/postgresql> for details if set to `false`, the values under `externalDatabase` are used |
|
| postgresql.enabled | bool | `true` | enable an included PostgreSQL DB. see <https://github.com/bitnami/charts/tree/master/bitnami/postgresql> for details if set to `false`, the values under `externalDatabase` are used |
|
||||||
| replicaCount | int | `1` | number of replicas to deploy |
|
| replicaCount | int | `1` | number of replicas to deploy |
|
||||||
| resources | object | `{}` | configure the FHIR server's resource requests and limits |
|
| resources | object | `{}` | configure the FHIR server's resource requests and limits |
|
||||||
|
| resourcesPreset | string | `"medium"` | set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if `resources` is set (`resources` is recommended for production). More information: <https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15> |
|
||||||
| securityContext.allowPrivilegeEscalation | bool | `false` | |
|
| securityContext.allowPrivilegeEscalation | bool | `false` | |
|
||||||
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
|
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
|
||||||
| securityContext.privileged | bool | `false` | |
|
| securityContext.privileged | bool | `false` | |
|
||||||
@@ -75,6 +81,7 @@ helm install hapi-fhir-jpaserver hapifhir/hapi-fhir-jpaserver
|
|||||||
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
|
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
|
||||||
| tests.automountServiceAccountToken | bool | `false` | whether the service account token should be auto-mounted for the test pods |
|
| tests.automountServiceAccountToken | bool | `false` | whether the service account token should be auto-mounted for the test pods |
|
||||||
| tests.resources | object | `{}` | configure the test pods resource requests and limits |
|
| tests.resources | object | `{}` | configure the test pods resource requests and limits |
|
||||||
|
| tests.resourcesPreset | string | `"nano"` | set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if `resources` is set (`resources` is recommended for production). More information: <https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15> |
|
||||||
| tolerations | list | `[]` | pod tolerations |
|
| tolerations | list | `[]` | pod tolerations |
|
||||||
| topologySpreadConstraints | list | `[]` | pod topology spread configuration see: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#api |
|
| topologySpreadConstraints | list | `[]` | pod topology spread configuration see: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#api |
|
||||||
|
|
||||||
|
|||||||
11
charts/hapi-fhir-jpaserver/ci/extra-volumes-values.yaml
Normal file
11
charts/hapi-fhir-jpaserver/ci/extra-volumes-values.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
extraVolumes:
|
||||||
|
- name: config-kube-root-ca
|
||||||
|
configMap:
|
||||||
|
name: kube-root-ca.crt
|
||||||
|
items:
|
||||||
|
- key: ca.crt
|
||||||
|
path: ca.crt
|
||||||
|
|
||||||
|
extraVolumeMounts:
|
||||||
|
- name: config-kube-root-ca
|
||||||
|
mountPath: /etc/test
|
||||||
@@ -31,12 +31,17 @@ spec:
|
|||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-for-db-to-be-ready
|
- name: wait-for-db-to-be-ready
|
||||||
image: docker.io/bitnami/postgresql:16.4.0-debian-12-r1@sha256:fb3d0a34e7b9f3e59442aa1fa2e6377857147c09ae754ddd5d4bb3fc0dd137da
|
image: docker.io/bitnami/postgresql:17.2.0-debian-12-r3@sha256:4de5c47eb98dd8fe09abdcbc2264984486ee8196e90902fb354f5d2ab97e8921
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
{{- with .Values.restrictedContainerSecurityContext }}
|
{{- with .Values.restrictedContainerSecurityContext }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.initContainers.resources }}
|
||||||
|
resources: {{- toYaml .Values.initContainers.resources | nindent 12 }}
|
||||||
|
{{- else if ne .Values.initContainers.resourcesPreset "none" }}
|
||||||
|
resources: {{- include "common.resources.preset" (dict "type" .Values.initContainers.resourcesPreset) | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: PGHOST
|
- name: PGHOST
|
||||||
value: "{{ include "hapi-fhir-jpaserver.database.host" . }}"
|
value: "{{ include "hapi-fhir-jpaserver.database.host" . }}"
|
||||||
@@ -76,8 +81,11 @@ spec:
|
|||||||
readinessProbe:
|
readinessProbe:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
{{- if .Values.resources }}
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
resources: {{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
{{- else if ne .Values.resourcesPreset "none" }}
|
||||||
|
resources: {{- include "common.resources.preset" (dict "type" .Values.resourcesPreset) | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: SPRING_DATASOURCE_URL
|
- name: SPRING_DATASOURCE_URL
|
||||||
value: {{ include "hapi-fhir-jpaserver.database.jdbcUrl" $ }}
|
value: {{ include "hapi-fhir-jpaserver.database.jdbcUrl" $ }}
|
||||||
@@ -98,6 +106,8 @@ spec:
|
|||||||
value: "true"
|
value: "true"
|
||||||
- name: MANAGEMENT_SERVER_PORT
|
- name: MANAGEMENT_SERVER_PORT
|
||||||
value: "8081"
|
value: "8081"
|
||||||
|
- name: MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE
|
||||||
|
value: "health,prometheus"
|
||||||
{{- if .Values.extraConfig }}
|
{{- if .Values.extraConfig }}
|
||||||
- name: SPRING_CONFIG_IMPORT
|
- name: SPRING_CONFIG_IMPORT
|
||||||
value: "/app/config/application-extra.yaml"
|
value: "/app/config/application-extra.yaml"
|
||||||
@@ -116,6 +126,9 @@ spec:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
subPath: application-extra.yaml
|
subPath: application-extra.yaml
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.extraVolumeMounts }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@@ -142,3 +155,6 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: {{ include "hapi-fhir-jpaserver.fullname" . }}-application-config
|
name: {{ include "hapi-fhir-jpaserver.fullname" . }}-application-config
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.extraVolumes }}
|
||||||
|
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@@ -5,11 +5,14 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "hapi-fhir-jpaserver.labels" . | nindent 4 }}
|
{{- include "hapi-fhir-jpaserver.labels" . | nindent 4 }}
|
||||||
{{ include "hapi-fhir-jpaserver.fullname" . }}-client: "true"
|
{{ include "hapi-fhir-jpaserver.fullname" . }}-client: "true"
|
||||||
|
app.kubernetes.io/component: tests
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": test
|
"helm.sh/hook": test
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
automountServiceAccountToken: {{ .Values.tests.automountServiceAccountToken }}
|
automountServiceAccountToken: {{ .Values.tests.automountServiceAccountToken }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.tests.podSecurityContext | nindent 4 }}
|
||||||
containers:
|
containers:
|
||||||
- name: test-metadata-endpoint
|
- name: test-metadata-endpoint
|
||||||
image: "{{ .Values.curl.image.registry }}/{{ .Values.curl.image.repository }}:{{ .Values.curl.image.tag }}"
|
image: "{{ .Values.curl.image.registry }}/{{ .Values.curl.image.repository }}:{{ .Values.curl.image.tag }}"
|
||||||
@@ -19,9 +22,10 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.tests.resources }}
|
{{- if .Values.tests.resources }}
|
||||||
resources:
|
resources: {{- toYaml .Values.tests.resources | nindent 10 }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- else if ne .Values.tests.resourcesPreset "none" }}
|
||||||
|
resources: {{- include "common.resources.preset" (dict "type" .Values.tests.resourcesPreset) | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
@@ -37,9 +41,10 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.tests.resources }}
|
{{- if .Values.tests.resources }}
|
||||||
resources:
|
resources: {{- toYaml .Values.tests.resources | nindent 10 }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- else if ne .Values.tests.resourcesPreset "none" }}
|
||||||
|
resources: {{- include "common.resources.preset" (dict "type" .Values.tests.resourcesPreset) | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
@@ -55,9 +60,10 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.tests.resources }}
|
{{- if .Values.tests.resources }}
|
||||||
resources:
|
resources: {{- toYaml .Values.tests.resources | nindent 10 }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- else if ne .Values.tests.resourcesPreset "none" }}
|
||||||
|
resources: {{- include "common.resources.preset" (dict "type" .Values.tests.resourcesPreset) | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ image:
|
|||||||
# -- the path inside the repository
|
# -- the path inside the repository
|
||||||
repository: hapiproject/hapi
|
repository: hapiproject/hapi
|
||||||
# -- the image tag. As of v5.7.0, this is the `distroless` flavor by default, add `-tomcat` to use the Tomcat-based image.
|
# -- the image tag. As of v5.7.0, this is the `distroless` flavor by default, add `-tomcat` to use the Tomcat-based image.
|
||||||
tag: "v7.2.0@sha256:9bcafa8342b572eee248cb7c48c496863d352bbd0347e1d98ea238d09620e89b"
|
tag: "v7.6.0@sha256:4771a178e764896c83881c1b3a52bd487e53d06e1acc3653ea0db0c6f6b2b8a1"
|
||||||
# -- image pullPolicy to use
|
# -- image pullPolicy to use
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
@@ -28,8 +28,13 @@ podAnnotations: {}
|
|||||||
|
|
||||||
# -- pod security context
|
# -- pod security context
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
{}
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
# fsGroup: 2000
|
runAsNonRoot: true
|
||||||
|
runAsGroup: 65532
|
||||||
|
runAsUser: 65532
|
||||||
|
fsGroup: 65532
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
@@ -69,6 +74,11 @@ ingress:
|
|||||||
# hosts:
|
# hosts:
|
||||||
# - chart-example.local
|
# - chart-example.local
|
||||||
|
|
||||||
|
# -- set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge).
|
||||||
|
# This is ignored if `resources` is set (`resources` is recommended for production).
|
||||||
|
# More information: <https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15>
|
||||||
|
resourcesPreset: "medium"
|
||||||
|
|
||||||
# -- configure the FHIR server's resource requests and limits
|
# -- configure the FHIR server's resource requests and limits
|
||||||
resources:
|
resources:
|
||||||
{}
|
{}
|
||||||
@@ -231,11 +241,15 @@ curl:
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: curlimages/curl
|
repository: curlimages/curl
|
||||||
tag: 8.9.1@sha256:8addc281f0ea517409209f76832b6ddc2cabc3264feb1ebbec2a2521ffad24e4
|
tag: 8.11.1@sha256:c1fe1679c34d9784c1b0d1e5f62ac0a79fca01fb6377cdd33e90473c6f9f9a69
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
# -- whether the service account token should be auto-mounted for the test pods
|
# -- whether the service account token should be auto-mounted for the test pods
|
||||||
automountServiceAccountToken: false
|
automountServiceAccountToken: false
|
||||||
|
# -- set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge).
|
||||||
|
# This is ignored if `resources` is set (`resources` is recommended for production).
|
||||||
|
# More information: <https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15>
|
||||||
|
resourcesPreset: "nano"
|
||||||
# -- configure the test pods resource requests and limits
|
# -- configure the test pods resource requests and limits
|
||||||
resources: {}
|
resources: {}
|
||||||
# limits:
|
# limits:
|
||||||
@@ -244,6 +258,29 @@ tests:
|
|||||||
# requests:
|
# requests:
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
|
# @ignored
|
||||||
|
podSecurityContext:
|
||||||
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsGroup: 65532
|
||||||
|
runAsUser: 65532
|
||||||
|
fsGroup: 65532
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
|
||||||
|
initContainers:
|
||||||
|
# -- set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge).
|
||||||
|
# This is ignored if `resources` is set (`resources` is recommended for production).
|
||||||
|
# More information: <https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15>
|
||||||
|
resourcesPreset: "nano"
|
||||||
|
# -- configure the init containers pods resource requests and limits
|
||||||
|
resources: {}
|
||||||
|
# limits:
|
||||||
|
# cpu: 100m
|
||||||
|
# memory: 128Mi
|
||||||
|
# requests:
|
||||||
|
# cpu: 100m
|
||||||
|
# memory: 128Mi
|
||||||
|
|
||||||
# -- additional Spring Boot application config. Mounted as a file and automatically loaded by the application.
|
# -- additional Spring Boot application config. Mounted as a file and automatically loaded by the application.
|
||||||
extraConfig:
|
extraConfig:
|
||||||
@@ -257,3 +294,9 @@ extraConfig:
|
|||||||
# url: https://build.fhir.org/ig/hl7-eu/gravitate-health/package.tgz
|
# url: https://build.fhir.org/ig/hl7-eu/gravitate-health/package.tgz
|
||||||
# name: hl7.eu.fhir.gh
|
# name: hl7.eu.fhir.gh
|
||||||
# version: 0.1.0
|
# version: 0.1.0
|
||||||
|
|
||||||
|
# -- Optionally specify extra list of additional volumes
|
||||||
|
extraVolumes: []
|
||||||
|
|
||||||
|
# -- Optionally specify extra list of additional volumeMounts
|
||||||
|
extraVolumeMounts: []
|
||||||
|
|||||||
Reference in New Issue
Block a user