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

fix: Pass ps_args as option to container top #4063

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

coderbirju
Copy link
Contributor

@coderbirju coderbirju commented Mar 31, 2025

Currently the arguments for the ps command is parsed out in the top.go file
this PR moves the parsing logic to the parent function and passes the parsed values via a new field in the ContainerTopOptions
This will enable nerdctl lib users to pass ps_args values.

Tests are already present for these in cmd/nerdctl/container/container_top_test.go
I've just moved the parsing from child function to parent, no change in logical behavior

@AkihiroSuda
Copy link
Member

What was the issue?
How to test this PR?

@coderbirju
Copy link
Contributor Author

Updated the PR description

@fahedouch fahedouch added this to the v2.0.5 milestone Apr 1, 2025
Copy link
Member

@fahedouch fahedouch left a comment

Choose a reason for hiding this comment

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

thanks

@coderbirju
Copy link
Contributor Author

@AkihiroSuda PTAL when you get a chance

@coderbirju coderbirju closed this Apr 10, 2025
@coderbirju coderbirju reopened this Apr 10, 2025
@coderbirju
Copy link
Contributor Author

Retrying for flaky tests

@coderbirju coderbirju closed this Apr 11, 2025
@coderbirju coderbirju reopened this Apr 11, 2025
@fahedouch fahedouch merged commit 268aae8 into containerd:main Apr 11, 2025
89 of 93 checks passed
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.

4 participants