certmanager

package
v1.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Namespace is the namespace where certificates are stored.
	Namespace string

	// ServiceName is the name of the service for the webhook.
	ServiceName string

	// CASecretName is the name of the CA secret.
	CASecretName string

	// CertSecretName is the name of the serving certificate secret.
	CertSecretName string

	// CABundleConfigMapName is the name of the CA bundle configmap.
	CABundleConfigMapName string

	// CAValidity is the validity duration of the CA certificate.
	CAValidity time.Duration

	// CARefresh is the refresh interval for the CA certificate.
	CARefresh time.Duration

	// CertValidity is the validity duration of the server certificate.
	CertValidity time.Duration

	// CertRefresh is the refresh interval for the server certificate.
	CertRefresh time.Duration

	// SyncInterval is the interval between certificate sync checks.
	SyncInterval time.Duration
}

Config holds the certificate manager configuration.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles certificate rotation using openshift/library-go.

func New

func New(client kubernetes.Interface, config Config) *Manager

New creates a new certificate manager.

func (*Manager) Start

func (m *Manager) Start(ctx context.Context) error

Start starts the certificate manager and blocks until the context is cancelled.

Jump to

Keyboard shortcuts

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