util

package
v0.0.0-...-5756e46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func IssuerKindFromType(issuerType string) (string, bool)

IssuerKindFromType will return the cert-manager.io Issuer Kind from a resource type name.

func UpdateOrApplyStatus

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

type SignerIssuerRef struct {
	Namespace, Name string
	Type, Group     string
}

func SignerIssuerRefFromSignerName

func SignerIssuerRefFromSignerName(name string) (SignerIssuerRef, bool)

SignerIssuerRefFromSignerName will return a SignerIssuerRef from a CertificateSigningRequests.Spec.SignerName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL