// IsCertificateRequestApproved returns true if a certificate request has the // "Approved" condition and no "Denied" conditions; false otherwise. func IsCertificateRequestApproved(csr *certificates.CertificateSigningRequest) bool { … } // HasTrueCondition returns true if the csr contains a condition of the specified type with a status that is set to True or is empty func HasTrueCondition(csr *certificates.CertificateSigningRequest, conditionType certificates.RequestConditionType) bool { … } func GetCertApprovalCondition(status *certificates.CertificateSigningRequestStatus) (approved bool, denied bool) { … }