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: reduce repeat validate code #2093

Merged
merged 1 commit into from
Aug 14, 2018
Merged

refactor: reduce repeat validate code #2093

merged 1 commit into from
Aug 14, 2018

Conversation

Ace-Tang
Copy link
Contributor

@Ace-Tang Ace-Tang commented Aug 14, 2018

remove cpu, memory resource validate in client end, and remove
some useless validate code.

Since these part validations already exists in daemon side, daemon/mgr/container_validation.go .

Signed-off-by: Ace-Tang [email protected]

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

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

no need.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

remove cpu, memory resource validate in client end, and remove
some useless validate code.

Signed-off-by: Ace-Tang <[email protected]>
@codecov-io
Copy link

codecov-io commented Aug 14, 2018

Codecov Report

Merging #2093 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2093      +/-   ##
=========================================
+ Coverage      65%     65%   +<.01%     
=========================================
  Files         209     206       -3     
  Lines       16227   16203      -24     
=========================================
- Hits        10548   10533      -15     
+ Misses       4370    4362       -8     
+ Partials     1309    1308       -1
Flag Coverage Δ
#criv1alpha1test 33.43% <ø> (+0.06%) ⬆️
#criv1alpha2test 34.03% <ø> (+0.02%) ⬆️
#integrationtest 39.99% <ø> (+0.1%) ⬆️
#unittest 23.76% <ø> (-0.06%) ⬇️
Impacted Files Coverage Δ
apis/opts/intel_rdt.go 0% <ø> (ø) ⬆️
apis/opts/memory_swap.go 100% <ø> (+18.18%) ⬆️
apis/opts/spec_annotation.go 75% <ø> (+15%) ⬆️
ctrd/image.go 76.75% <0%> (-2.2%) ⬇️
daemon/logger/jsonfile/utils.go 73.17% <0%> (+1.62%) ⬆️
daemon/mgr/system.go 79.33% <0%> (+1.65%) ⬆️

@allencloud
Copy link
Collaborator

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Aug 14, 2018
@allencloud allencloud merged commit b2c2824 into AliyunContainerService:master Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/refactor LGTM one maintainer or community participant agrees to merge the pull reuqest. size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants