Documentation
¶
Index ¶
- func FetchCurrentCaBundleForAdmission(ctx context.Context, c client.Reader, cfg configuration.Configuration) ([]byte, error)
- func WebhookCertificateReadinessCheck(reader client.Reader, cfg configuration.Configuration, namespace string, ...) healthz.Checker
- type ManagedCRD
- type Reconciler
- func (r *Reconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
- func (r *Reconciler) ReconcileCertificates(ctx context.Context, log logr.Logger, certSecret *corev1.Secret) error
- func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, ctrlConfig utils.ControllerOptions) error
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 Reconciler ¶
type Reconciler struct {
client.Client
Log logr.Logger
Scheme *runtime.Scheme
Namespace string
Configuration configuration.Configuration
}
func (*Reconciler) ReconcileCertificates ¶
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, ctrlConfig utils.ControllerOptions) error
Click to show internal directories.
Click to hide internal directories.