fix loop
All checks were successful
lint-test-helm / lint-helm (push) Successful in 16s
render-manifests-push / render-manifests-push (push) Successful in 38s
renovate / renovate (push) Successful in 1m16s

This commit is contained in:
2025-12-19 23:02:30 -06:00
parent 766b2a3999
commit 8f8537c31d
2 changed files with 2 additions and 4 deletions

View File

@@ -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

View File

@@ -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;