Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine return code of command executed using exec on a pod. #1336

Closed
ScrapCodes opened this issue Jan 31, 2019 · 9 comments
Closed

Determine return code of command executed using exec on a pod. #1336

ScrapCodes opened this issue Jan 31, 2019 · 9 comments

Comments

@ScrapCodes
Copy link
Contributor

Is there a way to determine the return code of the command run by

val execWatch = client.pods()
        .withName(podName)
        .writingOutput(baosOut)
        .writingError(baosErr)
        .exec("sh", "-c", command)

In the api, I could not spot a way to capture the exit code of the process run as a result of the given command.

@stale
Copy link

stale bot commented Aug 6, 2019

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@stale stale bot added the status/stale label Aug 6, 2019
@ScrapCodes
Copy link
Contributor Author

Hi, any update on this issue?

@stale stale bot removed the status/stale label Aug 6, 2019
@rohanKanojia
Copy link
Member

looks like a valid issue, If you have time feel free to submit a PR

@stale
Copy link

stale bot commented Nov 4, 2019

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@stale stale bot added the status/stale label Nov 4, 2019
@stale stale bot removed the status/stale label Nov 5, 2019
@stale
Copy link

stale bot commented Feb 3, 2020

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@FerranAgulloLopez
Copy link

Hello:) Any updates on this?

@shawkins
Copy link
Contributor

shawkins commented Feb 22, 2022

This has been implemented by #3813 - ExecListener.onExit

@FerranAgulloLopez
Copy link

True, thanks a lot!

@shawkins
Copy link
Contributor

Resolving as a duplicate of #3813

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants