Documentation ¶
Index ¶
- func CertificateFromConfig(cfg *rest.Config) (*tls.Certificate, error)
- func ConfigWithCertificate(cfg *rest.Config, cert *tls.Certificate) (*rest.Config, error)
- func DynamicCertificateConfig(cfg *rest.Config, getCertificate func() *tls.Certificate, ...) (*rest.Config, func(), error)
- func IsConfigValid(cfg *rest.Config) bool
- func RequestConfig(ctx context.Context, certCfg *rest.Config, signerName string, ...) (*rest.Config, error)
- func UseOrRequestConfig(ctx context.Context, cfg *rest.Config, certCfg *rest.Config, signerName string, ...) (resCfg *rest.Config, newConfig bool, err error)
- type ConfigRotator
- type ConfigRotatorListener
- type ConfigRotatorListenerFunc
- type ConfigRotatorListenerRegistration
- type ConfigRotatorOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateFromConfig ¶
func CertificateFromConfig(cfg *rest.Config) (*tls.Certificate, error)
func ConfigWithCertificate ¶
func IsConfigValid ¶
func RequestConfig ¶
func UseOrRequestConfig ¶
Types ¶
type ConfigRotator ¶
type ConfigRotator interface { manager.Runnable healthz.HealthChecker Init(ctx context.Context, force bool) error ClientConfig() *rest.Config TransportConfig() *rest.Config AddListener(listener ConfigRotatorListener) ConfigRotatorListenerRegistration RemoveListener(reg ConfigRotatorListenerRegistration) }
func NewConfigRotator ¶
func NewConfigRotator(cfg, bootstrapCfg *rest.Config, opts ConfigRotatorOptions) (ConfigRotator, error)
type ConfigRotatorListener ¶
type ConfigRotatorListener interface {
Enqueue()
}
type ConfigRotatorListenerFunc ¶
type ConfigRotatorListenerFunc func()
func (ConfigRotatorListenerFunc) Enqueue ¶
func (f ConfigRotatorListenerFunc) Enqueue()
type ConfigRotatorListenerRegistration ¶
type ConfigRotatorListenerRegistration interface{}
type ConfigRotatorOptions ¶
type ConfigRotatorOptions struct { Name string SignerName string Template *x509.CertificateRequest GetUsages func(privateKey any) []certificatesv1.KeyUsage RequestedDuration *time.Duration LogConstructor func() logr.Logger DialFunc utilnet.DialFunc NewCertificateRotator func(opts certificate.RotatorOptions) (certificate.Rotator, error) ForceInitial bool }
Click to show internal directories.
Click to hide internal directories.