Documentation ¶
Index ¶
- Variables
- func CertificateSigningRequestIsApproved(csr *certificatesv1.CertificateSigningRequest) bool
- func CertificateSigningRequestIsDenied(csr *certificatesv1.CertificateSigningRequest) bool
- func CertificateSigningRequestIsFailed(csr *certificatesv1.CertificateSigningRequest) bool
- func CertificateSigningRequestSetFailed(csr *certificatesv1.CertificateSigningRequest, reason, message string)
- func IssuerKindFromType(issuerType string) (string, bool)
- func UpdateOrApplyStatus(ctx context.Context, cl certificatesclient.CertificateSigningRequestInterface, ...) (*certificatesv1.CertificateSigningRequest, error)
- type SignerIssuerRef
Constants ¶
This section is empty.
Variables ¶
View Source
var Clock clock.Clock = clock.RealClock{}
Clock is defined as a package var so it can be stubbed out during tests.
Functions ¶
func CertificateSigningRequestIsApproved ¶
func CertificateSigningRequestIsApproved(csr *certificatesv1.CertificateSigningRequest) bool
func CertificateSigningRequestIsDenied ¶
func CertificateSigningRequestIsDenied(csr *certificatesv1.CertificateSigningRequest) bool
func CertificateSigningRequestIsFailed ¶
func CertificateSigningRequestIsFailed(csr *certificatesv1.CertificateSigningRequest) bool
func CertificateSigningRequestSetFailed ¶
func CertificateSigningRequestSetFailed(csr *certificatesv1.CertificateSigningRequest, reason, message string)
func IssuerKindFromType ¶
IssuerKindFromType will return the cert-manager.io Issuer Kind from a resource type name.
func UpdateOrApplyStatus ¶
func UpdateOrApplyStatus(ctx context.Context, cl certificatesclient.CertificateSigningRequestInterface, csr *certificatesv1.CertificateSigningRequest, condType certificatesv1.RequestConditionType, fieldManager string, ) (*certificatesv1.CertificateSigningRequest, error)
UpdateOrApplyStatus will update a CertificateSigningRequest's status, or Apply if the ServerSideApply feature gate is enabled. When the ServerSideApply feature is enabled; condType is optional, and will only be applied if non-empty and the condition with that type exists on the CertificateSigningRequest.
Types ¶
type SignerIssuerRef ¶
func SignerIssuerRefFromSignerName ¶
func SignerIssuerRefFromSignerName(name string) (SignerIssuerRef, bool)
SignerIssuerRefFromSignerName will return a SignerIssuerRef from a CertificateSigningRequests.Spec.SignerName
Click to show internal directories.
Click to hide internal directories.