From 2b0129070c9c299cc2ce4296e6a8ea77e62cbc7c Mon Sep 17 00:00:00 2001 From: "Chang, Hui-Tang" Date: Wed, 6 Dec 2023 14:02:40 +0800 Subject: [PATCH] chore(helm): update OpenFGA config (#397) Because - the pipeline-backend will connect to OpenFGA This commit - update OpenFGA config --- charts/vdp/templates/_helpers.tpl | 4 ++++ charts/vdp/templates/pipeline-backend/configmap.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/charts/vdp/templates/_helpers.tpl b/charts/vdp/templates/_helpers.tpl index 7623c56a..1beff048 100644 --- a/charts/vdp/templates/_helpers.tpl +++ b/charts/vdp/templates/_helpers.tpl @@ -104,6 +104,10 @@ app.kubernetes.io/name: {{ include "vdp.name" . }} {{- print "core-mgmt-backend" -}} {{- end -}} +{{- define "core.openfga" -}} + {{- printf "core-openfga" -}} +{{- end -}} + {{- define "vdp.pipelineBackend" -}} {{- printf "%s-pipeline-backend" (include "vdp.fullname" .) -}} {{- end -}} diff --git a/charts/vdp/templates/pipeline-backend/configmap.yaml b/charts/vdp/templates/pipeline-backend/configmap.yaml index 9e07738d..cccf6271 100644 --- a/charts/vdp/templates/pipeline-backend/configmap.yaml +++ b/charts/vdp/templates/pipeline-backend/configmap.yaml @@ -86,3 +86,6 @@ data: otelcollector: host: {{ template "core.otel" . }} port: {{ template "core.otel.port" . }} + openfga: + host: {{ template "core.openfga" . }} + port: 8080