From 72c8d4dbf314c4d8518d3307f99f1b53ed8cab18 Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Fri, 5 Apr 2024 01:59:47 +0200 Subject: [PATCH] [OPB-xxx] adding environment variable to get the url the bot can be reached at --- deployment/helm/oneplus-bot/templates/deployment.yaml | 2 ++ deployment/helm/oneplus-bot/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/deployment/helm/oneplus-bot/templates/deployment.yaml b/deployment/helm/oneplus-bot/templates/deployment.yaml index acd2258..404d6cb 100644 --- a/deployment/helm/oneplus-bot/templates/deployment.yaml +++ b/deployment/helm/oneplus-bot/templates/deployment.yaml @@ -77,6 +77,8 @@ spec: value: "{{ .Values.privateRestApi.service.name }}.{{ .Release.Namespace }}.svc.cluster.local" - name: PRIVATE_REST_API_PORT value: "{{ .Values.privateRestApi.service.targetPort }}" + - name: FRONTEND_BASE + value: "https://{{ .Values.bot.host }}" {{- range $key, $value := .Values.bot.propertyConfig }} - name: {{ $key | quote }} value: {{ $value | quote}} diff --git a/deployment/helm/oneplus-bot/values.yaml b/deployment/helm/oneplus-bot/values.yaml index 2596a8b..a261fec 100644 --- a/deployment/helm/oneplus-bot/values.yaml +++ b/deployment/helm/oneplus-bot/values.yaml @@ -16,6 +16,7 @@ bot: newsForumPostNotificationServerId: null propertyConfig: hikariPoolSize: 10 + host: templateDeployment: enabled: true repository: harbor.sheldan.dev/abstracto