Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertApprovalCondition ¶
func GetCertApprovalCondition(status *capi.CertificateSigningRequestStatus) (approved bool, denied bool)
func IsCertificateRequestApproved ¶
func IsCertificateRequestApproved(csr *capi.CertificateSigningRequest) bool
IsCertificateRequestApproved returns true if a certificate request has the "Approved" condition and no "Denied" conditions; false otherwise.
func ParseCSR ¶
func ParseCSR(pemBytes []byte) (*x509.CertificateRequest, error)
ParseCSR decodes a PEM encoded CSR Copied from https://github.com/kubernetes/kubernetes/blob/v1.18.0-beta.2/pkg/apis/certificates/v1beta1/helpers.go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.