From bffe255530bfed688f2d2e5ee67da5e5351ce204 Mon Sep 17 00:00:00 2001 From: xBlaz3kx Date: Fri, 25 Sep 2026 23:54:51 +0200 Subject: [PATCH 1/2] feat(oecs-hub): Chatwoot support widget web env New web.env.chatwootBaseUrl / web.env.chatwootWebsiteToken, rendered as CHATWOOT_BASE_URL / CHATWOOT_WEBSITE_TOKEN (served to the SPA via /env.js; unset hides the widget). Bumps the chart to 0.1.7. --- charts/oecs-hub/Chart.yaml | 2 +- charts/oecs-hub/templates/web-deployment.yaml | 9 +++++++++ charts/oecs-hub/values.yaml | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/charts/oecs-hub/Chart.yaml b/charts/oecs-hub/Chart.yaml index d174104..f06cc6e 100644 --- a/charts/oecs-hub/Chart.yaml +++ b/charts/oecs-hub/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: oecs-hub description: OECS hub - gRPC registry service for EV charger/manufacturer data type: application -version: 0.1.6 +version: 0.1.7 appVersion: "0.11.0" kubeVersion: ">=1.27.0-0" home: https://github.com/ChargePi/oecs-registry diff --git a/charts/oecs-hub/templates/web-deployment.yaml b/charts/oecs-hub/templates/web-deployment.yaml index 5c14a02..c587100 100644 --- a/charts/oecs-hub/templates/web-deployment.yaml +++ b/charts/oecs-hub/templates/web-deployment.yaml @@ -65,6 +65,15 @@ spec: - name: KRATOS_URL value: {{ . | quote }} {{- end }} + {{- /* Chatwoot support widget, served to the SPA via /env.js - hidden unless both set. */}} + {{- with .Values.web.env.chatwootBaseUrl }} + - name: CHATWOOT_BASE_URL + value: {{ . | quote }} + {{- end }} + {{- with .Values.web.env.chatwootWebsiteToken }} + - name: CHATWOOT_WEBSITE_TOKEN + value: {{ . | quote }} + {{- end }} resources: {{- toYaml .Values.web.resources | nindent 12 }} {{- end }} diff --git a/charts/oecs-hub/values.yaml b/charts/oecs-hub/values.yaml index 994342c..bdfa77d 100644 --- a/charts/oecs-hub/values.yaml +++ b/charts/oecs-hub/values.yaml @@ -269,6 +269,9 @@ web: # Required for auth to work at all (see src/lib/auth/client.ts's BASE_PATH="/ory") - # unlike the two above, this isn't optional. kratosUrl: "" + # Chatwoot support widget (base URL + website inbox token); widget is hidden unless both are set. + chatwootBaseUrl: "" + chatwootWebsiteToken: "" ingress: enabled: false className: "" From 855fc8bb5cd1ad8dff9d062d9af9fc461c7155b3 Mon Sep 17 00:00:00 2001 From: xBlaz3kx Date: Mon, 28 Sep 2026 22:46:59 +0200 Subject: [PATCH 2/2] chore(oecs-hub): bump appVersion to 0.12.0 --- charts/oecs-hub/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/oecs-hub/Chart.yaml b/charts/oecs-hub/Chart.yaml index f06cc6e..318d3e0 100644 --- a/charts/oecs-hub/Chart.yaml +++ b/charts/oecs-hub/Chart.yaml @@ -3,7 +3,7 @@ name: oecs-hub description: OECS hub - gRPC registry service for EV charger/manufacturer data type: application version: 0.1.7 -appVersion: "0.11.0" +appVersion: "0.12.0" kubeVersion: ">=1.27.0-0" home: https://github.com/ChargePi/oecs-registry sources: