From 628ecd0d519acc6b4717d05aa12fd4f7b7dfc55f Mon Sep 17 00:00:00 2001 From: yoonsoonjahng Date: Tue, 8 Sep 2020 19:06:00 -0400 Subject: Add keycloak configuration to aai-resource in order to support multi-tenency - Change Values.yaml to add host, port of keycloak server - add application-keycloak.properties - Update template/deployment.yaml to include application-keycloak.properties Issue-ID: AAI-3130 Change-Id: I2b741457a4d8c87e4b70b1f3903974170f35d571 Signed-off-by: yoonsoonjahng --- components/aai-resources/templates/configmap.yaml | 1 + components/aai-resources/templates/deployment.yaml | 3 +++ 2 files changed, 4 insertions(+) (limited to 'components/aai-resources/templates') diff --git a/components/aai-resources/templates/configmap.yaml b/components/aai-resources/templates/configmap.yaml index ccbeae3..1a1192a 100644 --- a/components/aai-resources/templates/configmap.yaml +++ b/components/aai-resources/templates/configmap.yaml @@ -29,6 +29,7 @@ data: {{ tpl (.Files.Glob "resources/config/janusgraph-cached.properties").AsConfig . | indent 2 }} {{ tpl (.Files.Glob "resources/config/aaiconfig.properties").AsConfig . | indent 2 }} {{ tpl (.Files.Glob "resources/config/application.properties").AsConfig . | indent 2 }} +{{ tpl (.Files.Glob "resources/config/application-keycloak.properties").AsConfig . | indent 2 }} {{ tpl (.Files.Glob "resources/config/realm.properties").AsConfig . | indent 2 }} --- apiVersion: v1 diff --git a/components/aai-resources/templates/deployment.yaml b/components/aai-resources/templates/deployment.yaml index 2440da6..ae328f5 100644 --- a/components/aai-resources/templates/deployment.yaml +++ b/components/aai-resources/templates/deployment.yaml @@ -1288,6 +1288,9 @@ spec: - mountPath: /opt/app/aai-resources/resources/application.properties name: {{ include "common.fullname" . }}-config subPath: application.properties + - mountPath: /opt/app/aai-resources/resources/application-keycloak.properties + name: {{ include "common.fullname" . }}-config + subPath: application-keycloak.properties {{ $global := . }} {{ range $job := .Values.global.config.auth.files }} - mountPath: /opt/app/aai-resources/resources/etc/auth/{{ . }} -- cgit 1.2.3-korg