Skip to content

client: add root mounts to task info#1212

Closed
dmcgowan wants to merge 1 commit intocontainerd:masterfrom
dmcgowan:task-root-mounts
Closed

client: add root mounts to task info#1212
dmcgowan wants to merge 1 commit intocontainerd:masterfrom
dmcgowan:task-root-mounts

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

Add root mounts to task info and allow using root mounts on new task when specified.

Signed-off-by: Derek McGowan <[email protected]>
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1212 into master will decrease coverage by 0.07%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1212      +/-   ##
==========================================
- Coverage   28.09%   28.01%   -0.08%     
==========================================
  Files          28       28              
  Lines        2833     2841       +8     
==========================================
  Hits          796      796              
- Misses       1888     1896       +8     
  Partials      149      149
Impacted Files Coverage Δ
task.go 0% <ø> (ø) ⬆️
container.go 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 805654a...8da1fc4. Read the comment docs.

Comment thread task.go

type TaskInfo struct {
Checkpoint *types.Descriptor
RootMounts []mount.Mount
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we rename CreateTaskRequest.RootFS to RootFSMounts?

@AkihiroSuda How does this fit with the rootfs specification?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not just call it RootFS like we do an other places?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There might be some other changes that make that confusing. Especially since we've moved away from being mostly mount oriented.

@stevvooe
Copy link
Copy Markdown
Member

@dmcgowan While I think this PR is good for alpha1, let's hold off and figure out the naming here.

@tonistiigi
Copy link
Copy Markdown
Member

LGTM

@dmcgowan
Copy link
Copy Markdown
Member Author

Closing in favor of #1249

@dmcgowan dmcgowan closed this Jul 25, 2017
ianlewis pushed a commit to ianlewis/containerd that referenced this pull request Dec 8, 2020
…ons-bandwith-error

Return actual error when fetching the bandwidth info from annotation fails
@dmcgowan dmcgowan deleted the task-root-mounts branch March 23, 2022 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants