From 8f8537c31d9bd8d0cc943f8ecbe9499201544892 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Fri, 19 Dec 2025 23:02:30 -0600 Subject: [PATCH] fix loop --- clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml | 3 +-- clusters/cl01tl/helm/vault/templates/config-map.yaml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml b/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml index 4a8a41bff..9010e6bfe 100644 --- a/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml +++ b/clusters/cl01tl/helm/qbittorrent/templates/config-map.yaml @@ -10,10 +10,9 @@ metadata: data: update.sh: | API_ENDPOINT="http://localhost:8080/api/v2"; - MAX_RETRIES=5 SUCCESS=false - for ((i=1; i<=$MAX_RETRIES; i++)); do + for i in {1..5}; do if apk update --short &> /dev/null; then echo ">> Attempt $i: Repositories are reachable" SUCCESS=true diff --git a/clusters/cl01tl/helm/vault/templates/config-map.yaml b/clusters/cl01tl/helm/vault/templates/config-map.yaml index 513ac4547..55dd2f421 100644 --- a/clusters/cl01tl/helm/vault/templates/config-map.yaml +++ b/clusters/cl01tl/helm/vault/templates/config-map.yaml @@ -9,10 +9,9 @@ metadata: app.kubernetes.io/part-of: {{ .Release.Name }} data: snapshot.sh: | - MAX_RETRIES=5 SUCCESS=false - for ((i=1; i<=$MAX_RETRIES; i++)); do + for i in {1..5}; do if apk update --short &> /dev/null; then echo ">> Attempt $i: Repositories are reachable"; SUCCESS=true;