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

feature: update restful api support update container diskquota #1235

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

HusterWan
Copy link
Contributor

Signed-off-by: Michael Wan [email protected]

Ⅰ. Describe what this PR did

Update API should support update container diskquota

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Apr 27, 2018

Codecov Report

Merging #1235 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1235      +/-   ##
==========================================
- Coverage   15.36%   15.31%   -0.06%     
==========================================
  Files         172      172              
  Lines       10630    10665      +35     
==========================================
  Hits         1633     1633              
- Misses       8877     8912      +35     
  Partials      120      120
Impacted Files Coverage Δ
cli/update.go 0% <0%> (ø) ⬆️
daemon/mgr/container.go 0% <0%> (ø) ⬆️
cli/run.go 0% <0%> (ø) ⬆️

@@ -908,6 +908,11 @@ func (mgr *ContainerManager) Update(ctx context.Context, name string, config *ty
}
}

// update container disk quota
if err := mgr.updateContainerDiskQuota(ctx, c.meta, config.DiskQuota); err != nil {
return fmt.Errorf("failed to update container %s diskquota: %v", c.ID(), err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

errors.Wrapf?


// set mount point disk quota
if err := mgr.setMountPointDiskQuota(ctx, c); err != nil {
return fmt.Errorf("failed to set mount point disk quota: %v", err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

errors.Wrapf

@HusterWan
Copy link
Contributor Author

today, i will first merged this pr, then we should add some test case for update container disk quota.

just record to remind myself

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.

4 participants