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>
This commit is contained in:
parent
5c71b53ccf
commit
8e9014aeef
1 changed files with 2 additions and 2 deletions
|
|
@ -48,14 +48,14 @@ spec:
|
||||||
# Fetch TeslaMate dashboards from forge mirror at a pinned tag.
|
# Fetch TeslaMate dashboards from forge mirror at a pinned tag.
|
||||||
# To upgrade: update TESLAMATE_VERSION below.
|
# To upgrade: update TESLAMATE_VERSION below.
|
||||||
- name: init-teslamate-dashboards
|
- name: init-teslamate-dashboards
|
||||||
image: docker.io/library/busybox:kustomized
|
image: docker.io/library/alpine:3.21
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["sh", "-c"]
|
command: ["sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
TESLAMATE_VERSION="v3.0.0"
|
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"
|
DEST="/tmp/dashboards/TeslaMate"
|
||||||
mkdir -p "$DEST"
|
mkdir -p "$DEST"
|
||||||
for f in \
|
for f in \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue