Skip to content

Commit 6fb628c

Browse files
vcarluerjreynard-code
authored andcommitted
multi tenant in helm chart
1 parent 1e28c1c commit 6fb628c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

api/kubernetes/deploy_via_helm-dev.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ help() {
2929
echo "- KEYCLOAK_ADMIN_PASSWORD | admin password for keycloak (generated if not specified)"
3030
echo "- KEYCLOAK_DB_PASSWORD | admin password for keycloak db (generated if not specified)"
3131
echo "- KEYCLOAK_DB_USER_PASSWORD | admin password for keycloak db user (generated if not specified)"
32+
echo "- MULTI_TENANT | boolean | enable multi-tenant mode (default is false)"
3233
echo
3334
echo "Usage: ./$(basename "$0") API_IMAGE_TAG NAMESPACE ARGO_POSTGRESQL_PASSWORD API_VERSION [any additional options to pass as is to the cosmotech-api Helm Chart]"
3435
}
@@ -640,7 +641,7 @@ cat <<EOF > values-cosmotech-api-deploy.yaml
640641
replicaCount: 2
641642
api:
642643
version: "$API_VERSION"
643-
servletContextPath: "/${NAMESPACE}"
644+
multiTenant: ${MULTI_TENANT:-false}
644645
645646
image:
646647
repository: ghcr.io/cosmo-tech/cosmotech-api

api/kubernetes/helm-chart/templates/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Default Ingress path
8888
{{- end }}
8989

9090
{{/*
91+
API Base path with servlet context, namespace, version
92+
*/}}
9193
{{- define "cosmotech-api.apiBasePath" -}}
9294
{{- if eq .Values.api.version "latest" }}
9395
{{- printf "%s/" (include "cosmotech-api.ingressTenantPath" . | trimSuffix "/" ) }}

0 commit comments

Comments
 (0)