Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CertRenewalInterval is the renewal interval for rootCA CertRenewalInterval = 12 * time.Hour // CAValidityDuration is the valid duration for CA certificates CAValidityDuration = 365 * 24 * time.Hour // TLSValidityDuration is the valid duration for TLS certificates TLSValidityDuration = 150 * 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
func NewCertRenewer ¶ added in v1.3.5
func NewCertRenewer( client client, certRenewalInterval, caValidityDuration, tlsValidityDuration, renewBefore time.Duration, server string, commonName string, dnsNames []string, namespace string, caSecret string, pairSecret string, ) *certRenewer
NewCertRenewer returns an instance of CertRenewer
func ReadRootCASecret ¶ added in v1.3.5
func ReadRootCASecret(name, namespace string, client corev1listers.SecretNamespaceLister) ([]byte, error)
ReadRootCASecret returns the RootCA from the pre-defined secret
Types ¶
type CertRenewer ¶ added in v1.3.5
Click to show internal directories.
Click to hide internal directories.