-
Notifications
You must be signed in to change notification settings - Fork 547
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
minor: plumb context
through to tlog requests
#1103
Conversation
context
through to tlog requestscontext
through to tlog requests
cmd/cosign/cli/attest/attest.go
Outdated
@@ -67,6 +67,12 @@ func AttestCmd(ctx context.Context, ko sign.KeyOpts, regOpts options.RegistryOpt | |||
return errors.Wrap(err, "parsing reference") | |||
} | |||
|
|||
if timeout != time.Duration(0) { |
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.
This reads a lot better
if timeout != time.Duration(0) { | |
if timeout != 0 { |
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.
done
cmd/cosign/cli/sign/sign.go
Outdated
@@ -135,6 +134,13 @@ func SignCmd(ctx context.Context, ko KeyOpts, regOpts options.RegistryOptions, a | |||
} | |||
} | |||
|
|||
// TODO - Defaulting the timeout to zero as the CLI doesn't accept timeout. |
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.
IDK how to interpret the work needed to address this TODO
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.
fixed it up
fd6c07a
to
aa848e8
Compare
Signed-off-by: Jake Sanders <[email protected]>
aa848e8
to
f66c007
Compare
This makes the
timeout
argument unnecessary