From c6d73fc92c92ce12725c745d0716537588a593f7 Mon Sep 17 00:00:00 2001 From: WrenIX Date: Tue, 7 Jan 2025 13:48:58 +0100 Subject: [PATCH] fix(autopush): add autoend endpoint_url again --- autopush/Chart.yaml | 2 +- autopush/README.md | 2 +- autopush/templates/secret.yaml | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/autopush/Chart.yaml b/autopush/Chart.yaml index b6bc30c..eacdf2c 100644 --- a/autopush/Chart.yaml +++ b/autopush/Chart.yaml @@ -3,7 +3,7 @@ name: autopush description: A Helm chart for Kubernetes icon: type: application -version: 0.0.2 +version: 0.0.3 # renovate: image=docker.io/mozilla-services/autopush-rs appVersion: "1.72.2" maintainers: diff --git a/autopush/README.md b/autopush/README.md index c0ff0a4..f0613d5 100644 --- a/autopush/README.md +++ b/autopush/README.md @@ -7,7 +7,7 @@ description: "A Helm chart for Kubernetes" # autopush -![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.72.2](https://img.shields.io/badge/AppVersion-1.72.2-informational?style=flat-square) +![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.72.2](https://img.shields.io/badge/AppVersion-1.72.2-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/autopush/templates/secret.yaml b/autopush/templates/secret.yaml index 46fe7f1..54d5f0f 100644 --- a/autopush/templates/secret.yaml +++ b/autopush/templates/secret.yaml @@ -39,6 +39,11 @@ data: {{- end }} {{/* autoendpoint */}} AUTOEND__HOST: {{ "::" | b64enc }} + {{- if .Values.ingress.tls }} + AUTOEND__ENDPOINT_URL: {{ printf "https://updates.%s" .Values.ingress.host | b64enc }} + {{- else }} + AUTOEND__ENDPOINT_URL: {{ printf "http://updates.%s" .Values.ingress.host | b64enc }} + {{- end }} {{- if .Values.prometheus.enabled }} AUTOEND__STATSD_HOST: {{ "127.0.0.1" | b64enc }} AUTOEND__STATSD_PORT: {{ "9125" | b64enc }}