tls

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchCurrentCaBundleForAdmission added in v0.13.2

func FetchCurrentCaBundleForAdmission(
	ctx context.Context,
	c client.Reader,
	cfg configuration.Configuration,
) ([]byte, error)

func WebhookCertificateReadinessCheck added in v0.14.0

func WebhookCertificateReadinessCheck(
	reader client.Reader,
	cfg configuration.Configuration,
	namespace string,
	getCertificate certificateGetter,
) healthz.Checker

WebhookCertificateReadinessCheck prevents a webhook Pod from becoming ready while the certificate it is actually serving is not trusted by an admission configuration managed by Capsule. This closes the window between Secret publication, certwatcher reload, and caBundle reconciliation.

Types

type ManagedCRD added in v0.13.0

type ManagedCRD struct {
	Name                     string
	ManageConversion         bool
	ConversionPath           string
	ConversionReviewVersions []string
}

type Reconciler

type Reconciler struct {
	client.Client

	Log           logr.Logger
	Scheme        *runtime.Scheme
	Namespace     string
	Configuration configuration.Configuration
}

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*Reconciler) ReconcileCertificates

func (r *Reconciler) ReconcileCertificates(
	ctx context.Context,
	log logr.Logger,
	certSecret *corev1.Secret,
) error

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, ctrlConfig utils.ControllerOptions) error

Jump to

Keyboard shortcuts

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