Skip to content

container create: fix --tls-verify parsing#12064

Merged
openshift-merge-robot merged 1 commit intocontainers:mainfrom
vrothberg:fix-11933
Oct 27, 2021
Merged

container create: fix --tls-verify parsing#12064
openshift-merge-robot merged 1 commit intocontainers:mainfrom
vrothberg:fix-11933

Conversation

@vrothberg
Copy link
Copy Markdown
Member

Make sure that the value is only set if specified on the CLI. c/image
already defaults to true but if set in the system context, we'd skip
settings in the registries.conf.

Fixes: #11933
Signed-off-by: Valentin Rothberg rothberg@redhat.com

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Oct 22, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vrothberg

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

The pull request process is described here

Details 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 openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 22, 2021
@umohnani8
Copy link
Copy Markdown
Member

LGTM

Comment thread cmd/podman/containers/create.go Outdated
Comment thread cmd/podman/containers/create.go Outdated
@TomSweeneyRedHat
Copy link
Copy Markdown
Member

@vrothberg All kinds of unhappy tests

Comment thread cmd/podman/containers/create.go Outdated
@vrothberg
Copy link
Copy Markdown
Member Author

Updated. I moved the optional* code from Skopeo into c/common (already merged and Skopeo has been ported to it). The container-creation code is now using that code.

Other podman commands can later use that as well but I refrained from doing that in this PR.

Copy link
Copy Markdown
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

ACK (but I only skimmed the diff very quickly).

Comment thread cmd/podman/common/create.go Outdated
Make sure that the value is only set if specified on the CLI.  c/image
already defaults to true but if set in the system context, we'd skip
settings in the registries.conf.

Fixes: containers#11933
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
@vrothberg
Copy link
Copy Markdown
Member Author

@containers/podman-maintainers PTAL

@flouthoc
Copy link
Copy Markdown
Collaborator

LGTM

@Luap99
Copy link
Copy Markdown
Member

Luap99 commented Oct 27, 2021

Many commands have the --tls-verify flag, do they need to change too?

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Oct 27, 2021

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2021
@openshift-merge-robot openshift-merge-robot merged commit d908da5 into containers:main Oct 27, 2021
@vrothberg vrothberg deleted the fix-11933 branch October 28, 2021 08:10
@vrothberg
Copy link
Copy Markdown
Member Author

Many commands have the --tls-verify flag, do they need to change too?

Eventually, yes, at least for the sake of consistency. But I refrained from doing that now, see:

Other podman commands can later use that as well but I refrained from doing that in this PR.

@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 22, 2023
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 22, 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.

Run subcommand doesn't care about Insecure: true

9 participants