mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-13 06:54:04 +00:00
Merge pull request #88100 from jiahuif/kubelet-bootstrap-csr-logging
add logging for kubelet csr being approved and issued. Kubernetes-commit: bf050f9794973694e2cc9c8df2f5e8b354af63f6
This commit is contained in:
commit
5e1786105b
@ -115,8 +115,12 @@ func WaitForCertificate(ctx context.Context, client certificatesclient.Certifica
|
|||||||
if c.Type == certificates.CertificateDenied {
|
if c.Type == certificates.CertificateDenied {
|
||||||
return false, fmt.Errorf("certificate signing request is not approved, reason: %v, message: %v", c.Reason, c.Message)
|
return false, fmt.Errorf("certificate signing request is not approved, reason: %v, message: %v", c.Reason, c.Message)
|
||||||
}
|
}
|
||||||
if c.Type == certificates.CertificateApproved && csr.Status.Certificate != nil {
|
if c.Type == certificates.CertificateApproved {
|
||||||
return true, nil
|
if csr.Status.Certificate != nil {
|
||||||
|
klog.V(2).Infof("certificate signing request %s is issued", csr.Name)
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
|
klog.V(2).Infof("certificate signing request %s is approved, waiting to be issued", csr.Name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false, nil
|
return false, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user