fix script
All checks were successful
lint-test-helm / lint-helm (push) Successful in 12s
render-manifests-push / render-manifests-push (push) Successful in 24s
renovate / renovate (push) Successful in 1m8s

This commit is contained in:
2025-12-19 23:08:20 -06:00
parent 8f8537c31d
commit fdd5ee823f
2 changed files with 4 additions and 2 deletions

View File

@@ -10,9 +10,10 @@ metadata:
data: data:
update.sh: | update.sh: |
API_ENDPOINT="http://localhost:8080/api/v2"; API_ENDPOINT="http://localhost:8080/api/v2";
MAX_RETRIES=5
SUCCESS=false SUCCESS=false
for i in {1..5}; do for i in $(seq 1 "$MAX_RETRIES"); do
if apk update --short &> /dev/null; then if apk update --short &> /dev/null; then
echo ">> Attempt $i: Repositories are reachable" echo ">> Attempt $i: Repositories are reachable"
SUCCESS=true SUCCESS=true

View File

@@ -9,9 +9,10 @@ metadata:
app.kubernetes.io/part-of: {{ .Release.Name }} app.kubernetes.io/part-of: {{ .Release.Name }}
data: data:
snapshot.sh: | snapshot.sh: |
MAX_RETRIES=5
SUCCESS=false SUCCESS=false
for i in {1..5}; do for i in $(seq 1 "$MAX_RETRIES"); do
if apk update --short &> /dev/null; then if apk update --short &> /dev/null; then
echo ">> Attempt $i: Repositories are reachable"; echo ">> Attempt $i: Repositories are reachable";
SUCCESS=true; SUCCESS=true;