certs

package
v0.1.1-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL