Help us shape the future of Go! Take the 2026 Go Developer Survey

auditcert

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(ctx context.Context, mgr manager.Manager, opts Options) error

AddToManager adds both the certificate reconciler (leader-elected) and the certificate reloader (all replicas) to the given manager.

Types

type Options

type Options struct {
	// SecretName is the name of the Secret to store TLS materials in.
	SecretName string
	// Namespace is the namespace where the Secret is stored.
	Namespace string
	// ServiceName is the DNS name of the Service (used for server cert SANs).
	ServiceName string
	// CertDir is the directory where certs are written to disk. If empty, it is
	// read from the manager's webhook server configuration.
	CertDir string
	// CertValidity is the validity duration for certificates.
	CertValidity time.Duration
	// SyncPeriod is how often the reconciler checks for rotation.
	SyncPeriod time.Duration
	// ReloadPeriod is how often the reloader syncs certs from Secret to disk.
	ReloadPeriod time.Duration
}

Options configures the certificate management controllers.

func DefaultOptions

func DefaultOptions() Options

DefaultOptions returns Options with sensible defaults.

Jump to

Keyboard shortcuts

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