Skip to content

Commit

Permalink
Multibox adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
faridco committed Nov 7, 2024
1 parent b3f15c5 commit 6b5801d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aidbox/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ home: https://www.health-samurai.io/aidbox
icon: https://aidbox.github.io/helm-charts/icon.png?1712669999
name: aidbox
type: application
version: 0.1.15
version: 0.1.16
3 changes: 2 additions & 1 deletion aidbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Aidbox](https://docs.aidbox.app/) is an efficient and scalable FHIR server built to handle healthcare data effectively, empowering healthcare providers and developers alike with its comprehensive platform for storing, accessing, and exchanging healthcare information in accordance with FHIR standards.

![Version: 0.1.15](https://img.shields.io/badge/Version-0.1.15-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: edge](https://img.shields.io/badge/AppVersion-edge-informational?style=flat-square)
![Version: 0.1.16](https://img.shields.io/badge/Version-0.1.16-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: edge](https://img.shields.io/badge/AppVersion-edge-informational?style=flat-square)

## Installation

Expand Down Expand Up @@ -85,5 +85,6 @@ It will install the Aidbox in the `aidbox` namespace, creating that namespace if
| startupProbe.httpGet.port | string | `"api"` | |
| startupProbe.initialDelaySeconds | int | `20` | |
| startupProbe.periodSeconds | int | `5` | |
| updateStrategy.type | string | `"RollingUpdate"` | |
| volumeMounts | list | `[]` | |
| volumes | list | `[]` | |
2 changes: 1 addition & 1 deletion aidbox/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
{{ $key }}: {{ $val | quote }}
{{- end }}
{{- end }}
AIDBOX_BASE_URL: {{ required "missing protocol value" .Values.protocol }}://{{ required "missing host value" .Values.host }}
AIDBOX_BASE_URL: {{ required "missing protocol value" .Values.protocol }}://{{ or .Values.config.AIDBOX_CLUSTER_DOMAIN (required "missing host value" .Values.host) }}
{{- if .Values.config.AIDBOX_FHIR_SCHEMA_VALIDATION }}
AIDBOX_FHIR_SCHEMA_VALIDATION: "true"
{{- else }}
Expand Down
20 changes: 18 additions & 2 deletions aidbox/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "aidbox.fullname" . -}}
{{- $host := or .Values.config.AIDBOX_CLUSTER_DOMAIN .Values.host }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand All @@ -17,11 +18,14 @@ spec:
{{- if eq .Values.protocol "https" }}
tls:
- hosts:
- {{ .Values.host | quote }}
- {{ $host }}
{{- if .Values.config.AIDBOX_CLUSTER_DOMAIN }}
- "*.{{ .Values.config.AIDBOX_CLUSTER_DOMAIN }}"
{{- end }}
secretName: {{ $fullName }}-tls
{{- end }}
rules:
- host: {{ .Values.host | quote }}
- host: {{ $host }}
http:
paths:
- path: {{ .Values.ingress.defaultPath | default "/" | quote }}
Expand All @@ -31,4 +35,16 @@ spec:
name: {{ $fullName }}-api
port:
number: {{ int .Values.service.apiPort }}
{{- if .Values.config.AIDBOX_CLUSTER_DOMAIN }}
- host: "*.{{ .Values.config.AIDBOX_CLUSTER_DOMAIN }}"
http:
paths:
- path: {{ .Values.ingress.defaultPath | default "/" | quote }}
pathType: {{ .Values.ingress.pathType | default "ImplementationSpecific" | quote }}
backend:
service:
name: {{ $fullName }}-api
port:
number: {{ int .Values.service.apiPort }}
{{- end }}
{{- end }}

0 comments on commit 6b5801d

Please sign in to comment.