File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -722,10 +722,10 @@ mode_jobs() {
722
722
fi
723
723
for job in " ${jobs[@]} " ; do
724
724
(( total_jobs++ ))
725
- job_fail_count=$( echo " $data " | jq -r " .items[] | select(.status.failed and .metadata.name==\" $job \" ) | .status.failed" )
725
+ job_fail_count=$( echo " $data " | jq -r " .items[] | select(.metadata.namespace== \" $ns \" and . status.failed and .metadata.name==\" $job \" ) | .status.failed" )
726
726
total_failed_count=" $(( total_failed_count+ job_fail_count)) "
727
727
if [ " $job_fail_count " -ge " ${WARN} " ]; then
728
- OUTPUT=" ${OUTPUT} Job $job has $job_fail_count failures\n"
728
+ OUTPUT=" ${OUTPUT} Job $ns / $ job has $job_fail_count failures\n"
729
729
EXITCODE=1
730
730
elif [ " $job_fail_count " -ge " ${CRIT} " ]; then
731
731
EXITCODE=2
You can’t perform that action at this time.
0 commit comments