commit 225fc80cf390642f8c4d0c7627138f00d3fdc46b
parent 0b697f8bd50290ef57f9988edc31b7fc33e26430
Author: MTRNord <MTRNord@users.noreply.github.com>
Date: Sun, 22 Mar 2026 01:27:20 +0100
fix cleanup
Signed-off-by: MTRNord <MTRNord@users.noreply.github.com>
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/apps/talos_cluster/k6-operator/cronjobs.yaml b/apps/talos_cluster/k6-operator/cronjobs.yaml
@@ -73,7 +73,7 @@ spec:
TIMEOUT=300
START=$(date +%s)
while true; do
- STAGE=$(kubectl -n matrix get testrun/"${NAME}" -o jsonpath='{.status.stage}' 2>/dev/null || true)
+ STAGE=$(kubectl -n matrix get testrun/"${NAME}" -o jsonpath='{.status.stage}' 2>/dev/null) || break
echo "Stage: ${STAGE}"
case "${STAGE}" in finished|error) break ;; esac
[ $(($(date +%s) - START)) -ge ${TIMEOUT} ] && { echo "Timed out"; break; }
@@ -145,7 +145,7 @@ spec:
TIMEOUT=300
START=$(date +%s)
while true; do
- STAGE=$(kubectl -n matrix get testrun/"${NAME}" -o jsonpath='{.status.stage}' 2>/dev/null || true)
+ STAGE=$(kubectl -n matrix get testrun/"${NAME}" -o jsonpath='{.status.stage}' 2>/dev/null) || break
echo "Stage: ${STAGE}"
case "${STAGE}" in finished|error) break ;; esac
[ $(($(date +%s) - START)) -ge ${TIMEOUT} ] && { echo "Timed out"; break; }
@@ -217,7 +217,7 @@ spec:
TIMEOUT=600
START=$(date +%s)
while true; do
- STAGE=$(kubectl -n matrix get testrun/"${NAME}" -o jsonpath='{.status.stage}' 2>/dev/null || true)
+ STAGE=$(kubectl -n matrix get testrun/"${NAME}" -o jsonpath='{.status.stage}' 2>/dev/null) || break
echo "Stage: ${STAGE}"
case "${STAGE}" in finished|error) break ;; esac
[ $(($(date +%s) - START)) -ge ${TIMEOUT} ] && { echo "Timed out"; break; }
@@ -293,7 +293,7 @@ spec:
TIMEOUT=2700
START=$(date +%s)
while true; do
- STAGE=$(kubectl -n matrix get testrun/"${NAME}" -o jsonpath='{.status.stage}' 2>/dev/null || true)
+ STAGE=$(kubectl -n matrix get testrun/"${NAME}" -o jsonpath='{.status.stage}' 2>/dev/null) || break
echo "Stage: ${STAGE}"
case "${STAGE}" in finished|error) break ;; esac
[ $(($(date +%s) - START)) -ge ${TIMEOUT} ] && { echo "Timed out"; break; }