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 error message(LinuixIdMapping to uid_mappings) #318

Merged
merged 2 commits into from
Sep 21, 2021

Conversation

shorii
Copy link
Contributor

@shorii shorii commented Sep 21, 2021

No description provided.

src/rootless.rs Outdated
@@ -100,7 +100,7 @@ fn validate(spec: &Spec) -> Result<()> {
let uid_mappings = linux
.uid_mappings
.as_ref()
.context("rootless containers require LinuxIdMapping in spec")?;
.context("rootless containers require uid_mappings in spec")?;
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for your PR. How about aligning to the runtime spec? This means it should be uidMappings.
https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#user-namespace-mappings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your advice. I fixed this.(uid_mappings -> uidMappings, gid_mappings -> gidMappings)

Copy link
Member

Choose a reason for hiding this comment

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

perfect!

@codecov-commenter
Copy link

Codecov Report

Merging #318 (5c195d8) into main (19316ce) will decrease coverage by 2.12%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #318      +/-   ##
==========================================
- Coverage   73.10%   70.98%   -2.13%     
==========================================
  Files          44       46       +2     
  Lines        6545     6817     +272     
==========================================
+ Hits         4785     4839      +54     
- Misses       1760     1978     +218     

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.

LGTM

@utam0k utam0k merged commit 8887955 into containers:main Sep 21, 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.

3 participants