Merge pull request #293 from chgl/updated-helm-chart
updated helm chart to use image v5.6.0
This commit is contained in:
5
.github/workflows/chart-release.yaml
vendored
5
.github/workflows/chart-release.yaml
vendored
@@ -21,11 +21,6 @@ jobs:
|
|||||||
git config user.name "$GITHUB_ACTOR"
|
git config user.name "$GITHUB_ACTOR"
|
||||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Install Helm
|
|
||||||
uses: azure/setup-helm@v1
|
|
||||||
with:
|
|
||||||
version: v3.7.0
|
|
||||||
|
|
||||||
- name: Add bitnami repo
|
- name: Add bitnami repo
|
||||||
run: helm repo add bitnami https://charts.bitnami.com/bitnami
|
run: helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
|
|
||||||
|
|||||||
5
.github/workflows/chart-test.yaml
vendored
5
.github/workflows/chart-test.yaml
vendored
@@ -43,11 +43,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Helm
|
|
||||||
uses: azure/setup-helm@v1
|
|
||||||
with:
|
|
||||||
version: v3.7.0
|
|
||||||
|
|
||||||
- name: Set up chart-testing
|
- name: Set up chart-testing
|
||||||
uses: helm/chart-testing-action@v2.1.0
|
uses: helm/chart-testing-action@v2.1.0
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ annotations:
|
|||||||
# added, changed, deprecated, removed, fixed, and security.
|
# added, changed, deprecated, removed, fixed, and security.
|
||||||
- kind: changed
|
- kind: changed
|
||||||
description: |
|
description: |
|
||||||
updated HAPI FHIR starter image to 5.5.1
|
updated HAPI FHIR starter image to 5.6.0
|
||||||
appVersion: v5.5.1
|
- kind: added
|
||||||
version: 0.6.0
|
description: |
|
||||||
|
added support for configuring PodDisruptionBudget for the server pods
|
||||||
|
appVersion: v5.6.0
|
||||||
|
version: 0.7.0
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|
||||||
@@ -11,6 +11,9 @@ helm repo add hapifhir https://hapifhir.github.io/hapi-fhir-jpaserver-starter/
|
|||||||
helm install --render-subchart-notes hapi-fhir-jpaserver hapifhir/hapi-fhir-jpaserver
|
helm install --render-subchart-notes hapi-fhir-jpaserver hapifhir/hapi-fhir-jpaserver
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> ⚠ By default, the included [PostgreSQL Helm chart](https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrading)
|
||||||
|
> auto-generates a random password for the database which may cause problems when upgrading the chart (see [here for details](https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrading)).
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
@@ -24,11 +27,12 @@ helm install --render-subchart-notes hapi-fhir-jpaserver hapifhir/hapi-fhir-jpas
|
|||||||
| externalDatabase.password | string | `""` | database password |
|
| externalDatabase.password | string | `""` | database password |
|
||||||
| externalDatabase.port | int | `5432` | database port number |
|
| externalDatabase.port | int | `5432` | database port number |
|
||||||
| externalDatabase.user | string | `"fhir"` | username for the external database |
|
| externalDatabase.user | string | `"fhir"` | username for the external database |
|
||||||
|
| extraEnv | list | `[]` | extra environment variables to set on the server container |
|
||||||
| fullnameOverride | string | `""` | override the chart fullname |
|
| fullnameOverride | string | `""` | override the chart fullname |
|
||||||
| image.flavor | string | `"distroless"` | the flavor or variant of the image to use. appended to the image tag by `-`. |
|
| image.flavor | string | `"distroless"` | the flavor or variant of the image to use. appended to the image tag by `-`. |
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | |
|
| image.pullPolicy | string | `"IfNotPresent"` | image pullPolicy to use |
|
||||||
| image.registry | string | `"docker.io"` | |
|
| image.registry | string | `"docker.io"` | registry where the HAPI FHIR server image is hosted |
|
||||||
| image.repository | string | `"hapiproject/hapi"` | |
|
| image.repository | string | `"hapiproject/hapi"` | the path inside the repository |
|
||||||
| image.tag | string | `""` | defaults to `Chart.appVersion` |
|
| image.tag | string | `""` | defaults to `Chart.appVersion` |
|
||||||
| 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. |
|
||||||
@@ -43,6 +47,9 @@ helm install --render-subchart-notes hapi-fhir-jpaserver hapifhir/hapi-fhir-jpas
|
|||||||
| networkPolicy.explicitNamespacesSelector | object | `{}` | a Kubernetes LabelSelector to explicitly select namespaces from which ingress traffic could be allowed |
|
| networkPolicy.explicitNamespacesSelector | object | `{}` | a Kubernetes LabelSelector to explicitly select namespaces from which ingress traffic could be allowed |
|
||||||
| nodeSelector | object | `{}` | node selector for the pod |
|
| nodeSelector | object | `{}` | node selector for the pod |
|
||||||
| podAnnotations | object | `{}` | annotations applied to the server pod |
|
| podAnnotations | object | `{}` | annotations applied to the server pod |
|
||||||
|
| 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.minAvailable | int | `1` | minimum available instances |
|
||||||
| podSecurityContext | object | `{}` | pod security context |
|
| podSecurityContext | object | `{}` | pod security context |
|
||||||
| postgresql.containerSecurityContext.allowPrivilegeEscalation | bool | `false` | |
|
| postgresql.containerSecurityContext.allowPrivilegeEscalation | bool | `false` | |
|
||||||
| postgresql.containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
|
| postgresql.containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
|
||||||
@@ -61,8 +68,8 @@ helm install --render-subchart-notes hapi-fhir-jpaserver hapifhir/hapi-fhir-jpas
|
|||||||
| securityContext.readOnlyRootFilesystem | bool | `true` | |
|
| securityContext.readOnlyRootFilesystem | bool | `true` | |
|
||||||
| securityContext.runAsNonRoot | bool | `true` | |
|
| securityContext.runAsNonRoot | bool | `true` | |
|
||||||
| securityContext.runAsUser | int | `65532` | |
|
| securityContext.runAsUser | int | `65532` | |
|
||||||
| service.port | int | `8080` | |
|
| service.port | int | `8080` | port where the server will be exposed at |
|
||||||
| service.type | string | `"ClusterIP"` | |
|
| service.type | string | `"ClusterIP"` | service type |
|
||||||
| startupProbe.failureThreshold | int | `10` | |
|
| startupProbe.failureThreshold | int | `10` | |
|
||||||
| startupProbe.initialDelaySeconds | int | `60` | |
|
| startupProbe.initialDelaySeconds | int | `60` | |
|
||||||
| startupProbe.periodSeconds | int | `30` | |
|
| startupProbe.periodSeconds | int | `30` | |
|
||||||
@@ -70,5 +77,17 @@ helm install --render-subchart-notes hapi-fhir-jpaserver hapifhir/hapi-fhir-jpas
|
|||||||
| startupProbe.timeoutSeconds | int | `30` | |
|
| startupProbe.timeoutSeconds | int | `30` | |
|
||||||
| tolerations | list | `[]` | pod tolerations |
|
| tolerations | list | `[]` | pod tolerations |
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
To update the Helm chart when a new version of the `hapiproject/hapi` image is released, the [Chart.yaml](Chart.yaml)'s
|
||||||
|
`appVersion` and `version` fields need to be updated accordingly. Afterwards, re-generate the [README.md](README.md)
|
||||||
|
by running:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ helm-docs
|
||||||
|
INFO[2021-11-20T12:38:04Z] Found Chart directories [charts/hapi-fhir-jpaserver]
|
||||||
|
INFO[2021-11-20T12:38:04Z] Generating README Documentation for chart /usr/src/app/charts/hapi-fhir-jpaserver
|
||||||
|
```
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
|
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
|
||||||
|
|||||||
@@ -11,6 +11,21 @@ helm repo add hapifhir https://hapifhir.github.io/hapi-fhir-jpaserver-starter/
|
|||||||
helm install --render-subchart-notes hapi-fhir-jpaserver hapifhir/hapi-fhir-jpaserver
|
helm install --render-subchart-notes hapi-fhir-jpaserver hapifhir/hapi-fhir-jpaserver
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> ⚠ By default, the included [PostgreSQL Helm chart](https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrading)
|
||||||
|
> auto-generates a random password for the database which may cause problems when upgrading the chart (see [here for details](https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrading)).
|
||||||
|
|
||||||
{{ template "chart.valuesSection" . }}
|
{{ template "chart.valuesSection" . }}
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
To update the Helm chart when a new version of the `hapiproject/hapi` image is released, the [Chart.yaml](Chart.yaml)'s
|
||||||
|
`appVersion` and `version` fields need to be updated accordingly. Afterwards, re-generate the [README.md](README.md)
|
||||||
|
by running:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ helm-docs
|
||||||
|
INFO[2021-11-20T12:38:04Z] Found Chart directories [charts/hapi-fhir-jpaserver]
|
||||||
|
INFO[2021-11-20T12:38:04Z] Generating README Documentation for chart /usr/src/app/charts/hapi-fhir-jpaserver
|
||||||
|
```
|
||||||
|
|
||||||
{{ template "helm-docs.versionFooter" . }}
|
{{ template "helm-docs.versionFooter" . }}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{{- if .Values.podDisruptionBudget.enabled }}
|
||||||
|
kind: PodDisruptionBudget
|
||||||
|
apiVersion: policy/v1
|
||||||
|
metadata:
|
||||||
|
name: {{ include "hapi-fhir-jpaserver.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "hapi-fhir-jpaserver.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
{{- if .Values.podDisruptionBudget.minAvailable }}
|
||||||
|
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.podDisruptionBudget.maxUnavailable }}
|
||||||
|
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
||||||
|
{{- end }}
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
{{- include "hapi-fhir-jpaserver.selectorLabels" . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
@@ -2,13 +2,16 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
image:
|
image:
|
||||||
|
# -- registry where the HAPI FHIR server image is hosted
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
|
# -- the path inside the repository
|
||||||
repository: hapiproject/hapi
|
repository: hapiproject/hapi
|
||||||
# -- defaults to `Chart.appVersion`
|
# -- defaults to `Chart.appVersion`
|
||||||
tag: ""
|
tag: ""
|
||||||
# -- the flavor or variant of the image to use.
|
# -- the flavor or variant of the image to use.
|
||||||
# appended to the image tag by `-`.
|
# appended to the image tag by `-`.
|
||||||
flavor: "distroless"
|
flavor: "distroless"
|
||||||
|
# -- image pullPolicy to use
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
# -- image pull secrets to use when pulling the image
|
# -- image pull secrets to use when pulling the image
|
||||||
@@ -42,7 +45,9 @@ securityContext:
|
|||||||
|
|
||||||
# service to expose the server
|
# service to expose the server
|
||||||
service:
|
service:
|
||||||
|
# -- service type
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
# -- port where the server will be exposed at
|
||||||
port: 8080
|
port: 8080
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
@@ -157,3 +162,18 @@ networkPolicy:
|
|||||||
# matchLabels:
|
# matchLabels:
|
||||||
# app.kubernetes.io/name: {{ $.Release.Name }}
|
# app.kubernetes.io/name: {{ $.Release.Name }}
|
||||||
allowedFrom: []
|
allowedFrom: []
|
||||||
|
|
||||||
|
# -- extra environment variables to set on the server container
|
||||||
|
extraEnv:
|
||||||
|
[]
|
||||||
|
# - name: SPRING_FLYWAY_BASELINE_ON_MIGRATE
|
||||||
|
# value: "true"
|
||||||
|
|
||||||
|
podDisruptionBudget:
|
||||||
|
# -- Enable PodDisruptionBudget for the server pods.
|
||||||
|
# uses policy/v1/PodDisruptionBudget thus requiring k8s 1.21+
|
||||||
|
enabled: false
|
||||||
|
# -- minimum available instances
|
||||||
|
minAvailable: 1
|
||||||
|
# -- maximum unavailable instances
|
||||||
|
maxUnavailable: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user