Documentation ¶
Index ¶
Constants ¶
View Source
const ( DNSValidatorRoute53 DNSValidator = iota DefaultCertificateNS string = "kcp-glbc" )
View Source
const TlsIssuerAnnotation = "kuadrant.dev/tls-issuer"
Variables ¶
View Source
var CertNotReadyErr = fmt.Errorf("certificate is not ready yet ")
Functions ¶
func IsCertNotReadyErr ¶
func NewCertManager ¶
func NewCertManager(c CertManagerConfig) (*certManager, error)
Types ¶
type CertManagerConfig ¶
type CertManagerConfig struct { DNSValidator DNSValidator CertClient certmanclient.Interface CertProvider CertProvider LEConfig *LEConfig Region string // client targeting the glbc workspace cluster K8sClient kubernetes.Interface // namespace in the control workspace where we create certificates CertificateNS string // set of domains we allow certs to be created for ValidDomains []string }
type CertProvider ¶
type CertProvider string
type CertStatus ¶
type CertStatus string
type CertificateRequest ¶
type DNSValidator ¶
type DNSValidator int
type Provider ¶
type Provider interface { IssuerID() string Domains() []string Create(ctx context.Context, cr CertificateRequest) error Delete(ctx context.Context, cr CertificateRequest) error Update(ctx context.Context, cr CertificateRequest) error GetCertificateSecret(ctx context.Context, cr CertificateRequest) (*v1.Secret, error) GetCertificate(ctx context.Context, cr CertificateRequest) (*certman.Certificate, error) GetCertificateStatus(ctx context.Context, certReq CertificateRequest) (CertStatus, error) IssuerExists(ctx context.Context) (bool, error) }
Click to show internal directories.
Click to hide internal directories.