diff --git a/k8s/errors/cronjob-late-maybe-error.yaml b/k8s/errors/cronjob-late-maybe-error.yaml index 9e81621..ccb9a22 100644 --- a/k8s/errors/cronjob-late-maybe-error.yaml +++ b/k8s/errors/cronjob-late-maybe-error.yaml @@ -28,6 +28,5 @@ spec: sleep $((MINWAIT+RANDOM % (MAXWAIT-MINWAIT))) sleep 3 r=$((RANDOM%2)) - if [ $r -eq 0 ]; then echo Hello!; fi - if [ $r -eq 1 ]; then exit 1; fi + if [ $r -eq 0 ]; then echo Hello!; else exit 1; fi restartPolicy: Never diff --git a/k8s/errors/cronjob-maybe-error.yaml b/k8s/errors/cronjob-maybe-error.yaml index 841497d..4947789 100644 --- a/k8s/errors/cronjob-maybe-error.yaml +++ b/k8s/errors/cronjob-maybe-error.yaml @@ -25,6 +25,5 @@ spec: - | sleep 3 r=$((RANDOM%2)) - if [ $r -eq 0 ]; then echo Hello!; fi - if [ $r -eq 1 ]; then exit 1; fi + if [ $r -eq 0 ]; then echo Hello!; else exit 1; fi restartPolicy: Never