Skip to content

Commit

Permalink
updated fhir-server version and added test (#30)
Browse files Browse the repository at this point in the history
* updated fhir-server version and added test

* set default values to allow installation on kind

* updated docs

* enabled automatic schema updates
  • Loading branch information
chgl authored Feb 10, 2021
1 parent dca1ae4 commit 164bb0c
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/fhir-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ maintainers:
sources:
- https://github.com/microsoft/fhir-server
type: application
version: 0.4.9
version: 0.4.10
10 changes: 5 additions & 5 deletions charts/fhir-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The following table lists the configurable parameters of the `fhir-server` chart
| replicaCount | | `1` |
| image.registry | | `healthplatformregistry.azurecr.io` |
| image.repository | | `r4_fhir-server` |
| image.tag | | `1.0.753` |
| image.tag | | `1.0.800` |
| image.pullPolicy | | `IfNotPresent` |
| imagePullSecrets | | `[]` |
| nameOverride | | `""` |
Expand All @@ -64,14 +64,14 @@ The following table lists the configurable parameters of the `fhir-server` chart
| securityContext.runAsUser | | `10001` |
| service.type | | `ClusterIP` |
| service.port | | `80` |
| database.dataStore | options: ExistingSqlServer, SqlServer, SqlContainer, CosmosDb | `"SqlServer"` |
| database.dataStore | options: ExistingSqlServer, SqlServer, SqlContainer, CosmosDb | `"SqlContainer"` |
| database.resourceGroup | | `""` |
| database.location | | `""` |
| database.sql.edition | 0: Basic 1: Business 2: BusinessCritical 3: DataWarehouse 4: Free 5: GeneralPurpose 6: Hyperscale 7: Premium More at https://godoc.org/github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/2015-05-01-preview/sql#DatabaseEdition | `5` |
| database.sql.maxPoolSize | | `100` |
| database.sql.schema.automaticUpdatesEnabled | | `false` |
| database.sql.schema.automaticUpdatesEnabled | | `true` |
| database.cosmosDb.initialCollectionThroughput | | `"400"` |
| database.sqlContainer.acceptEula | Accept EULA when deploying with --set database.sqlContainer.acceptEula="Y" | `"n"` |
| database.sqlContainer.acceptEula | Accept EULA when deploying with --set database.sqlContainer.acceptEula="Y" | `"y"` |
| database.sqlContainer.edition | | `"Developer"` |
| database.sqlContainer.image.registry | | `mcr.microsoft.com` |
| database.sqlContainer.image.repository | | `mssql/server` |
Expand All @@ -82,7 +82,7 @@ The following table lists the configurable parameters of the `fhir-server` chart
| database.sqlContainer.databaseName | | `FHIR` |
| database.sqlContainer.userName | | `sa` |
| database.sqlContainer.resources | | `{}` |
| database.sqlContainer.persistence.storageClass | | `default` |
| database.sqlContainer.persistence.storageClass | | `""` |
| database.sqlContainer.persistence.size | | `8Gi` |
| database.sqlContainer.persistence.annotations | | `{}` |
| database.sqlContainer.securityContext | | `{}` |
Expand Down
32 changes: 32 additions & 0 deletions charts/fhir-server/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "fhir-server.fullname" . }}-test-connection"
labels:
{{- include "fhir-server.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
restartPolicy: Never
containers:
- name: wget
image: busybox:1
command: ['wget', '-O', '-']
args: ['http://{{ include "fhir-server.fullname" . }}:{{ .Values.service.port }}/Patient?_count=1']
securityContext:
readOnlyRootFilesystem: true
runAsUser: 22222
runAsNonRoot: true
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
livenessProbe:
exec:
command: ["true"]
readinessProbe:
exec:
command: ["true"]
10 changes: 5 additions & 5 deletions charts/fhir-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ replicaCount: 1
image:
registry: healthplatformregistry.azurecr.io
repository: r4_fhir-server
tag: 1.0.753
tag: 1.0.800
pullPolicy: IfNotPresent

imagePullSecrets: []
Expand Down Expand Up @@ -41,7 +41,7 @@ service:

database:
# options: ExistingSqlServer, SqlServer, SqlContainer, CosmosDb
dataStore: "SqlServer"
dataStore: "SqlContainer"
resourceGroup: ""
location: ""
sql:
Expand All @@ -57,14 +57,14 @@ database:
edition: 5
maxPoolSize: 100
schema:
automaticUpdatesEnabled: false
automaticUpdatesEnabled: true
cosmosDb:
initialCollectionThroughput: "400"
# databaseId: health
# collectionId: fhir
sqlContainer:
# Accept EULA when deploying with --set database.sqlContainer.acceptEula="Y"
acceptEula: "n"
acceptEula: "y"
edition: "Developer"
image:
registry: mcr.microsoft.com
Expand All @@ -77,7 +77,7 @@ database:
userName: sa
resources: {}
persistence:
storageClass: default
storageClass: ""
size: 8Gi
annotations:
{}
Expand Down

0 comments on commit 164bb0c

Please sign in to comment.