-
Notifications
You must be signed in to change notification settings - Fork 792
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
Remove the extra (defaults to true) help msg #1431
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Couple nits for consideration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m afraid this is just incorrect; optionalBoolFlag
’s default is not (present=true, value=true), it is (present=false, value=N/A).
In particular --tls-verify=true
overrides an insecure
field in registries.conf
, but missing --tls-verify=true
uses the insecure
field’s value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false
is just as invalid, for the same reason — it overrides registries.conf
, whereas the default doesn’t.
… actually, as long as it doesn’t show up in any user-visible text, nor in any user-visible behavior, that might be fine. But that needs a somewhat comprehensive argument (and given the brittleness, a written record in the commit message or PR) of why that is the case. |
By default skopeo checks to see if the user actually uses one of the --*tls-verify flags. Their initial value is ignored. Setting the initial value to false causes Cobra to not display the default value on the screen when the user runs a `skopeo --help` command. If the user does not specify a --*tls-verify option, it falls back to using the value specified in the registries.conf file. Fixes: containers#1383 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@mtrmac commit message good now? |
@mtrmac @vrothberg PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, maybe needs a rebase or could be a github problem.
@rhatdan Nit RE: commit verification. It says Unverified
against your commit probably because you haven't uploaded your GPG to github.
By default skopeo checks to see if the user actually uses one of the
--*tls-verify flags. Their initial value is ignored. Setting the
initial value to false causes Cobra to not display the default value on
the screen when the user runs a
skopeo --help
command.If the user does not specify a --*tls-verify option, it falls back to
using the value specified in the registries.conf file.
Fixes: #1383
Signed-off-by: Daniel J Walsh dwalsh@redhat.com