Documentation ¶ Index ¶ func Ensure(ctx context.Context, client kubernetes.Interface, cfg Config, log logr.Logger) error type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Ensure ¶ func Ensure(ctx context.Context, client kubernetes.Interface, cfg Config, log logr.Logger) error Ensure provisions TLS certificates for the webhook server. It checks for an existing Secret, regenerates certs if missing or near expiry, writes them to disk, and patches the ValidatingWebhookConfiguration caBundle. Types ¶ type Config ¶ type Config struct { ServiceName string Namespace string SecretName string WebhookConfigName string CertDir string CertValidity time.Duration RenewalThreshold time.Duration } Config holds the configuration for webhook certificate provisioning. Source Files ¶ View all Source files certs.go Click to show internal directories. Click to hide internal directories.