Skip to content

Add ctr command label in NewContainerOpts#5660

Merged
estesp merged 1 commit intocontainerd:mainfrom
BigVan:main
Jun 29, 2021
Merged

Add ctr command label in NewContainerOpts#5660
estesp merged 1 commit intocontainerd:mainfrom
BigVan:main

Conversation

@BigVan
Copy link
Copy Markdown
Member

@BigVan BigVan commented Jun 25, 2021

Pass command label to snapshotter can help it determine which kind of writable snapshots should be provide.

For some snapshotter, such as overlaybd ( https://github.com/alibaba/accelerated-container-image ), it can provide 2 kind of writable snapshot(overlayfs dir or blockdevice) by command label values.

@k8s-ci-robot
Copy link
Copy Markdown

Hi @BigVan. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@AkihiroSuda
Copy link
Copy Markdown
Member

Maybe we should have another flag like —snapshot-label?

@BigVan BigVan force-pushed the main branch 2 times, most recently from ee4c5fb to 1acd93b Compare June 26, 2021 06:49
@BigVan
Copy link
Copy Markdown
Member Author

BigVan commented Jun 26, 2021

Maybe we should have another flag like —snapshot-label?

sounds good.
I have already add '—snapshot-label' in PR code..

Comment thread cmd/ctr/commands/commands.go Outdated
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jun 28, 2021

Build succeeded.

Comment thread cmd/ctr/commands/commands.go Outdated
@ktock
Copy link
Copy Markdown
Member

ktock commented Jun 28, 2021

/ok-to-test

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jun 28, 2021

Build succeeded.

@ktock
Copy link
Copy Markdown
Member

ktock commented Jun 28, 2021

Changes are LGTM.

@AkihiroSuda could we run Github Actions for this PR?

@ktock
Copy link
Copy Markdown
Member

ktock commented Jun 28, 2021

@BigVan Please use real name to sign off in the commit message.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jun 28, 2021

Build succeeded.

add '--snapshotter-labels' in ctr run and ctr c create
which can pass labels to snappshotter on preparing new
snapshot.

Pass command label to snapshotter can help it determine
which kind of writable snapshots should be provide.

For some snapshotter, such as overlaybd:
  ( https://github.com/alibaba/accelerated-container-image ),
it can provide 2 kind of writable snapshot (overlayfs dir or
 blockdevice) by command label values.

Signed-off-by: Yifan Yuan <[email protected]>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jun 28, 2021

Build succeeded.

Copy link
Copy Markdown
Member

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit 25d7f90 into containerd:main Jun 29, 2021
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.

7 participants