Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateRootCASecretName() string
- func GenerateTLSPairSecretName() string
- func NewCertRenewer(client controllerutils.ObjectClient[*corev1.Secret], ...) *certRenewer
- func ReadRootCASecret(client corev1listers.SecretNamespaceLister) ([]byte, error)
- type CertRenewer
- type CertValidator
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 ¶
View Source
var ErrorsNotFound = "root CA certificate not found"
Functions ¶
func GenerateRootCASecretName ¶ added in v1.5.4
func GenerateRootCASecretName() string
func GenerateTLSPairSecretName ¶ added in v1.5.4
func GenerateTLSPairSecretName() string
func NewCertRenewer ¶ added in v1.3.5
func NewCertRenewer( client controllerutils.ObjectClient[*corev1.Secret], lister corev1listers.SecretNamespaceLister, certRenewalInterval, caValidityDuration, tlsValidityDuration time.Duration, server string, ) *certRenewer
NewCertRenewer returns an instance of CertRenewer
func ReadRootCASecret ¶ added in v1.3.5
func ReadRootCASecret(client corev1listers.SecretNamespaceLister) ([]byte, error)
ReadRootCASecret returns the RootCA from the pre-defined secret
Types ¶
type CertRenewer ¶ added in v1.3.5
type CertValidator ¶ added in v1.8.1
Click to show internal directories.
Click to hide internal directories.