-
Notifications
You must be signed in to change notification settings - Fork 944
Get a valid image user and image uid #2549
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2549 +/- ##
==========================================
+ Coverage 69.09% 69.16% +0.06%
==========================================
Files 278 278
Lines 18552 18552
==========================================
+ Hits 12819 12831 +12
- Misses 4253 4254 +1
+ Partials 1480 1467 -13
|
|
We found this is your first time to contribute to Pouch, @changyaowei |
08b5c18 to
895e6eb
Compare
895e6eb to
263c354
Compare
| imageUID, username := getUserFromImageUser(image.Config.User) | ||
| if imageUID != nil { | ||
| uid.Value = *imageUID | ||
| if image == nil || image.Config == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
|
LGTM |
fuweid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@changyaowei please use git commit -s --amend --no-edit and repush again. We need your sign off before merge 😄
Signed-off-by: changyaowei <[email protected]>
263c354 to
d252659
Compare
fuweid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ⅰ. Describe what this PR did
Get a valid user and image uid through imageStatus and ListImages CRI
Ⅱ. Does this pull request fix one issue?
fixes #2548
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Modify an exist test case
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews