Found during review of #29.
The pod list is not filtered by phase. Pods in Succeeded/Pending/terminating states matching the label selector (e.g. completed Job pods) will always fail exec, and since #29 introduced non-zero exit when any pod fails, they now flip the exit code to 1 even when every runnable pod succeeded.
Suggested fix
Filter the listed pods to Running phase (optionally with a note/warning for skipped pods), or document the behavior in the README.
Found during review of #29.
The pod list is not filtered by phase. Pods in
Succeeded/Pending/terminating states matching the label selector (e.g. completed Job pods) will always fail exec, and since #29 introduced non-zero exit when any pod fails, they now flip the exit code to 1 even when every runnable pod succeeded.Suggested fix
Filter the listed pods to
Runningphase (optionally with a note/warning for skipped pods), or document the behavior in the README.