Documentation
¶
Overview ¶
Package webhooks implements provides utilities for managing and configuration k8s webhooks.
Package webhooks provides functions to manage webhook TLS certificates
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallNewCertificates ¶
func NewTLSSecret ¶
Types ¶
type WebhookTLS ¶ added in v0.20.0
type WebhookTLS struct {
Ctx context.Context
K8sConfig *rest.Config
CertPath string
KeyPath string
Name string
ServiceName string
LabelSelector string
Logger logr.Logger
Namespace string
RotationTime time.Duration
// contains filtered or unexported fields
}
func (*WebhookTLS) CACert ¶ added in v0.20.0
func (w *WebhookTLS) CACert() []byte
func (*WebhookTLS) ManageCertificates ¶ added in v0.20.0
func (w *WebhookTLS) ManageCertificates(frequency time.Duration) error
func (*WebhookTLS) ServerCert ¶ added in v0.20.0
func (w *WebhookTLS) ServerCert() []byte
func (*WebhookTLS) ServerKey ¶ added in v0.20.0
func (w *WebhookTLS) ServerKey() []byte
func (*WebhookTLS) UpdateOrCreate ¶ added in v0.20.0
func (w *WebhookTLS) UpdateOrCreate() error
Click to show internal directories.
Click to hide internal directories.