fix script
This commit is contained in:
@@ -10,9 +10,10 @@ metadata:
|
||||
data:
|
||||
update.sh: |
|
||||
API_ENDPOINT="http://localhost:8080/api/v2";
|
||||
MAX_RETRIES=5
|
||||
SUCCESS=false
|
||||
|
||||
for i in {1..5}; do
|
||||
for i in $(seq 1 "$MAX_RETRIES"); do
|
||||
if apk update --short &> /dev/null; then
|
||||
echo ">> Attempt $i: Repositories are reachable"
|
||||
SUCCESS=true
|
||||
|
||||
@@ -9,9 +9,10 @@ metadata:
|
||||
app.kubernetes.io/part-of: {{ .Release.Name }}
|
||||
data:
|
||||
snapshot.sh: |
|
||||
MAX_RETRIES=5
|
||||
SUCCESS=false
|
||||
|
||||
for i in {1..5}; do
|
||||
for i in $(seq 1 "$MAX_RETRIES"); do
|
||||
if apk update --short &> /dev/null; then
|
||||
echo ">> Attempt $i: Repositories are reachable";
|
||||
SUCCESS=true;
|
||||
|
||||
Reference in New Issue
Block a user