cert

package
v1.118.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package cert provides functions to manage certificates for webhookClientConfiguration.

Create a Provisioner with a CertWriter.

provisioner := Provisioner{
	CertWriter: admission.NewSecretCertWriter(admission.SecretCertWriterOptions{...}),
}

Provision the certificates for the webhookClientConfig

err := provisioner.Provision(Options{
	ClientConfig: webhookClientConfig,
	Objects: []runtime.Object{mutatingWebhookConfiguration, validatingWebhookConfiguration}
})
if err != nil {
	// handle error
}

This package and all its subpackages have been forked from sigs.k8s.io/controller-runtime/pkg/webhook/internal/cert at version 0.1.12

Directories

Path Synopsis
Package generator provides an interface and implementation to provision certificates.
Package generator provides an interface and implementation to provision certificates.
Package writer provides method to provision and persist the certificates.
Package writer provides method to provision and persist the certificates.

Jump to

Keyboard shortcuts

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