-
Notifications
You must be signed in to change notification settings - Fork 949
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
feature: update restful api support update container diskquota #1235
Conversation
Codecov Report
@@ 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
|
7e6ede5
to
613d168
Compare
daemon/mgr/container.go
Outdated
@@ -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) |
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.
errors.Wrapf?
daemon/mgr/container.go
Outdated
|
||
// 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) |
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.
errors.Wrapf
today, i will first merged this pr, then we should add some test case for update container disk quota. just record to remind myself |
613d168
to
32d3401
Compare
Signed-off-by: Michael Wan <[email protected]>
32d3401
to
65c918b
Compare
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