diff --git a/charts/oecs-hub/Chart.yaml b/charts/oecs-hub/Chart.yaml index d174104..318d3e0 100644 --- a/charts/oecs-hub/Chart.yaml +++ b/charts/oecs-hub/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: oecs-hub description: OECS hub - gRPC registry service for EV charger/manufacturer data type: application -version: 0.1.6 -appVersion: "0.11.0" +version: 0.1.7 +appVersion: "0.12.0" kubeVersion: ">=1.27.0-0" home: https://github.com/ChargePi/oecs-registry sources: 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: ""