这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@justinsb
Copy link
Collaborator

If the certificate is not valid, log the reason why not.

If the certificate is not valid, log the reason why not.
@yuwenma
Copy link
Collaborator

yuwenma commented Sep 22, 2025

/approve
/lgtm

@google-oss-prow
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yuwenma

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

@google-oss-prow google-oss-prow bot merged commit d0eff23 into GoogleCloudPlatform:master Sep 22, 2025
110 checks passed
ctx := context.TODO()
log := klog.FromContext(ctx)
if len(key) == 0 || len(cert) == 0 || len(caCert) == 0 {
log.Error(fmt.Errorf("empty key, cert or caCert"), "key, cert or caCert is empty")
Copy link
Collaborator

Choose a reason for hiding this comment

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

rather than mostly repeating ourselves in the string, maybe indicate that we are "returning the CACert as invalid" or some such?

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.

3 participants