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

Supports import&run--signature-policy #7624

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

QiWang19
Copy link
Contributor

@QiWang19 QiWang19 commented Sep 13, 2020

Enables podman create, pull, run, import to use --signature-policy option. Set it as hidden flag to be consistent with other commands.

Close #6053
Signed-off-by: Qi Wang [email protected]

@QiWang19 QiWang19 force-pushed the policy-option branch 2 times, most recently from ffe1ae5 to 1cf900c Compare September 14, 2020 00:00
@rhatdan
Copy link
Member

rhatdan commented Sep 14, 2020

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 14, 2020
Copy link
Member

@jwhonce jwhonce left a comment

Choose a reason for hiding this comment

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

@QiWang19 Are you going to add tests for the other commands?

@@ -174,7 +174,7 @@ func (r *Runtime) Build(ctx context.Context, options imagebuildah.BuildOptions,
}

// Import is called as an intermediary to the image library Import
func (r *Runtime) Import(ctx context.Context, source string, reference string, changes []string, history string, quiet bool) (string, error) {
func (r *Runtime) Import(ctx context.Context, source, reference string, signaturePolicyPath string, changes []string, history string, quiet bool) (string, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
func (r *Runtime) Import(ctx context.Context, source, reference string, signaturePolicyPath string, changes []string, history string, quiet bool) (string, error) {
func (r *Runtime) Import(ctx context.Context, source, reference, signaturePolicyPath string, changes []string, history string, quiet bool) (string, error) {

I would like to see either the type after each parameter or collapse all like parameters.

@TomSweeneyRedHat
Copy link
Member

If you get a chance, please correct the typo in the title "Suppots" -> "Supports"

@QiWang19 QiWang19 changed the title Suppots import&run--signature-policy Supports import&run--signature-policy Sep 14, 2020
@TomSweeneyRedHat
Copy link
Member

Touch up @jwhonce 's suggestion and the title, then LGTM.

@QiWang19 QiWang19 force-pushed the policy-option branch 2 times, most recently from f063fc7 to 17b8e24 Compare September 14, 2020 20:53
@rhatdan
Copy link
Member

rhatdan commented Sep 14, 2020

/lgtm
/approve
/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 14, 2020
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 14, 2020
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: QiWang19, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 14, 2020
@TomSweeneyRedHat
Copy link
Member

@QiWang19 all kinds of tests upset.

@QiWang19 QiWang19 force-pushed the policy-option branch 2 times, most recently from 1ba6ef8 to c123912 Compare September 15, 2020 17:52
Enables podman create, pull, run, import to use --signature-policy option. Set it as hidden flag to be consistent with other commands.

Signed-off-by: Qi Wang <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Sep 16, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 16, 2020
@rhatdan
Copy link
Member

rhatdan commented Sep 16, 2020

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 16, 2020
@openshift-merge-robot openshift-merge-robot merged commit 0d14d7b into containers:master Sep 16, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rootless podman: support passing arbitrary paths to configuration files
6 participants