Externalize TeslaMate dashboards to forge mirror #296

Merged
eblume merged 4 commits from externalize-teslamate-dashboards into main 2026-03-15 18:31:20 -07:00
Showing only changes of commit 8e9014aeef - Show all commits

Fix init container: use Alpine for proper TLS/redirect support

Busybox 1.31.1 wget doesn't follow Caddy's HTTP→HTTPS redirect.
Switch to Alpine 3.21 which has a full wget with TLS support, and
use the HTTPS URL directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Erich Blume 2026-03-15 17:57:36 -07:00

View file

@ -48,14 +48,14 @@ spec:
# Fetch TeslaMate dashboards from forge mirror at a pinned tag.
# To upgrade: update TESLAMATE_VERSION below.
- name: init-teslamate-dashboards
image: docker.io/library/busybox:kustomized
image: docker.io/library/alpine:3.21
imagePullPolicy: IfNotPresent
command: ["sh", "-c"]
args:
- |
set -e
TESLAMATE_VERSION="v3.0.0"
BASE_URL="http://forge.ops.eblu.me/mirrors/teslamate/raw/tag/${TESLAMATE_VERSION}/grafana/dashboards"
BASE_URL="https://forge.ops.eblu.me/mirrors/teslamate/raw/tag/${TESLAMATE_VERSION}/grafana/dashboards"
DEST="/tmp/dashboards/TeslaMate"
mkdir -p "$DEST"
for f in \