Documentation ¶
Index ¶
Constants ¶
View Source
const (
// CSRControllerName holds the controller name
CSRControllerName = "certificatesigningrequests-issuer-selfsigned"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SelfSigned ¶
type SelfSigned struct {
// contains filtered or unexported fields
}
SelfSigned is a controller for signing Kubernetes CertificateSigningRequest using SelfSigning Issuers.
func NewSelfSigned ¶
func NewSelfSigned(ctx *controllerpkg.Context) *SelfSigned
NewSelfSigned returns a new instance of SelfSigned type
func (*SelfSigned) Sign ¶
func (s *SelfSigned) Sign(ctx context.Context, csr *certificatesv1.CertificateSigningRequest, issuerObj cmapi.GenericIssuer) error
Sign attempts to sign the given CertificateSigningRequest based on the provided SelfSigned Issuer or ClusterIssuer. This function will update the resource if signing was successful. Returns an error which, if not nil, should trigger a retry. CertificateSigningRequests must have the "experimental.cert-manager.io/private-key-secret-name" annotation present to be signed. This annotation must reference a valid Secret containing a private key for signing.
Click to show internal directories.
Click to hide internal directories.