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

Add new function to exec cmds in host for process isolated containers #889

Merged
merged 1 commit into from
Oct 30, 2020

Conversation

katiewasnothere
Copy link
Contributor

This PR adds a new function that allows us to exec commands on the container host of process isolated containers. This will be used in subsequent PRs to support resource modification of process isolated containers.

Signed-off-by: Kathryn Baldauf [email protected]

@katiewasnothere katiewasnothere requested a review from a team as a code owner October 27, 2020 21:00
internal/cmd/diag.go Outdated Show resolved Hide resolved
Copy link
Contributor

@dcantah dcantah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Minor comments

@@ -34,3 +35,22 @@ func ExecInUvm(ctx context.Context, vm *uvm.UtilityVM, req *shimdiag.ExecProcess
err = cmd.Run()
return cmd.ExitState.ExitCode(), err
}

func ExecInHost(ctx context.Context, req *shimdiag.ExecProcessRequest) (int, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExecOnHost sounds better to me but don't have strong feelings

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to ExecInShimHost, does that seem fair?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More than fair, I like that more honestly 😃

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

Successfully merging this pull request may close these issues.

2 participants