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

refactor: support specify Namespace by user #2106

Merged
merged 1 commit into from
Aug 17, 2018

Conversation

HusterWan
Copy link
Contributor

Signed-off-by: Michael Wan zirenwan@gmail.com

Ⅰ. Describe what this PR did

Add a flag default-namespace for pouchd, so that we can configure the namespace for containerd.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Signed-off-by: Michael Wan <zirenwan@gmail.com>
@codecov-io
Copy link

Codecov Report

Merging #2106 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2106      +/-   ##
==========================================
- Coverage   65.14%   65.09%   -0.05%     
==========================================
  Files         208      208              
  Lines       16407    16405       -2     
==========================================
- Hits        10688    10679       -9     
- Misses       4388     4395       +7     
  Partials     1331     1331
Flag Coverage Δ
#criv1alpha1test 33.21% <100%> (+0.01%) ⬆️
#criv1alpha2test 33.83% <100%> (-0.01%) ⬇️
#integrationtest 39.82% <100%> (-0.05%) ⬇️
#unittest 23.84% <0%> (ø) ⬆️
Impacted Files Coverage Δ
daemon/config/config.go 48.75% <ø> (ø) ⬆️
daemon/mgr/container.go 55.9% <100%> (-0.21%) ⬇️
daemon/daemon.go 57.69% <100%> (-0.46%) ⬇️
ctrd/image.go 75% <0%> (-2.2%) ⬇️
daemon/mgr/system.go 77.68% <0%> (-1.66%) ⬇️
daemon/logger/jsonfile/utils.go 73.17% <0%> (+1.62%) ⬆️

Copy link
Collaborator

@allencloud allencloud left a comment

Choose a reason for hiding this comment

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

I think we can add a test for this. Since you configured the pouchd, something would change in the container inspect result, like a sub string of BaseFs. @HusterWan

@fuweid
Copy link
Contributor

fuweid commented Aug 17, 2018

@allencloud , we can add auto-testing later. The change looks good to me.

Copy link
Contributor

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

@fuweid fuweid merged commit 1b99698 into AliyunContainerService:master Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants