Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v1.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 13 Imported by: 2

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