machine-exec: expose exit code on failure #20343
Labels
area/machine-exec
kind/enhancement
A feature request - must adhere to the feature request template.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
severity/P2
Has a minor but important impact to the usage or development of the system.
Is your enhancement related to a problem? Please describe
Now, on failure, we've a JSON-RPC method
onExecError
that is saying there was an error and we have astack
attribute containing the message like : 'this process has exited with error code 123`but we don't have the exitCode as a field
Describe the solution you'd like
Provides the exitCode as part of a new attribute so there is nothing to parse on client side to know the exit code.
Describe alternatives you've considered
N/A
Additional context
it seems exit code can be grabbed for kubectl tool:
https://github.com/kubernetes/kubernetes/pull/26541/files
The text was updated successfully, but these errors were encountered: