flant / shell-operator

Shell-operator is a tool for running event-driven scripts in a Kubernetes cluster
https://flant.github.io/shell-operator/
Apache License 2.0
2.39k stars 214 forks source link

Catch stderr from executed commands #625

Closed miklezzzz closed 2 months ago

miklezzzz commented 2 months ago

Overview

Updates the way executor collects executed commands' stderr.

What this PR does / why we need it

This pr enriches executor's errors (if any) with stderr messages from executed commands (if any). It enables providing more meaningful errors from hooks/scripts than "command failed" to the end user.

Special notes for your reviewer