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 rootless option for spec #350

Merged
merged 6 commits into from Oct 3, 2021

Conversation

chenyukang
Copy link
Collaborator

./target/x86_64-unknown-linux-gnu/debug/youki spec --rootless

Will generate a config.json for rootless.

@chenyukang
Copy link
Collaborator Author

Reference: runc

Copy link
Collaborator

@yihuaf yihuaf left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

for ns in spec
.linux()
.as_ref()
.unwrap()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we not use unwrap? I know it may take a few more line to return results, but let's avoid unwrap in general.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can we not use unwrap? I know it may take a few more line to return results, but let's avoid unwrap in general.

how about use unwrap_or ?

src/commands/spec_json.rs Outdated Show resolved Hide resolved
src/commands/spec_json.rs Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Oct 2, 2021

Codecov Report

Merging #350 (c4a61d7) into main (6cb89fc) will decrease coverage by 1.12%.
The diff coverage is 95.18%.

@@            Coverage Diff             @@
##             main     #350      +/-   ##
==========================================
- Coverage   70.45%   69.33%   -1.13%     
==========================================
  Files          46       48       +2     
  Lines        6844     7118     +274     
==========================================
+ Hits         4822     4935     +113     
- Misses       2022     2183     +161     

src/commands/spec_json.rs Outdated Show resolved Hide resolved
src/commands/spec_json.rs Outdated Show resolved Hide resolved
Copy link
Member

@utam0k utam0k left a comment

Choose a reason for hiding this comment

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

Awesome!

@utam0k utam0k merged commit b704328 into containers:main Oct 3, 2021
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.

None yet

4 participants