Skip to content

Allow to use repository scope helper function from other packages#4600

Merged
mxpv merged 1 commit intocontainerd:masterfrom
ktock:repositoryscope
Oct 6, 2020
Merged

Allow to use repository scope helper function from other packages#4600
mxpv merged 1 commit intocontainerd:masterfrom
ktock:repositoryscope

Conversation

@ktock
Copy link
Copy Markdown
Member

@ktock ktock commented Oct 5, 2020

docker.Authorizer requires library clients to configure scope via context.
It is helpful for the clients to use the helper (currently private) function for
generating scope string and to use that function with the combination of other
scope-related ones (e.g. docker.WithScope).

@k8s-ci-robot
Copy link
Copy Markdown

Hi @ktock. 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.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 5, 2020

Build succeeded.

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 requested a review from dmcgowan October 5, 2020 14:10
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.

Suggestion.. go ahead and make the two contextWith*RepositoryScope functions public scope as well.

Copy link
Copy Markdown
Contributor

@Zyqsempai Zyqsempai left a comment

Choose a reason for hiding this comment

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

LGTM

`docker.Authorizer` requires library clients to configure scope via context.
It is helpful for the clients to use the helper (currently private) functions
for generating scope string and to use that function with the combination of
other scope-related ones (e.g. `docker.WithScope`).

Signed-off-by: Kohei Tokunaga <[email protected]>
@ktock
Copy link
Copy Markdown
Member Author

ktock commented Oct 6, 2020

@mikebrow
fixed the patch. PTAL

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Oct 6, 2020

Build succeeded.

@AkihiroSuda
Copy link
Copy Markdown
Member

/ok-to-test

Copy link
Copy Markdown
Member

@mxpv mxpv left a comment

Choose a reason for hiding this comment

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

LGTM

@mxpv mxpv merged commit c408aa9 into containerd:master Oct 6, 2020
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