webhookcerts

package
v0.1.76 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CASecretName is the name of the Secret containing the self-signed CA used to sign webhook serving certs.
	CASecretName = "webhook-serving-ca"
	// ServingCertSecretName is the name of the Secret containing the serving cert for the webhook server.
	ServingCertSecretName = "manager-serving-cert"
)

Variables

This section is empty.

Functions

func GenerateInitialWebhookCerts

func GenerateInitialWebhookCerts(namespace, serviceName string) (*corev1.Secret, *corev1.Secret, []byte, error)

GenerateInitialWebhookCerts generates the CA and serving cert secrets for use at install time. It also returns the CA bundle bytes for injection into CRDs and webhook configs.

Types

type WebhookCertReconciler

type WebhookCertReconciler struct {
	Client      client.Client
	Namespace   string
	ServiceName string
	// contains filtered or unexported fields
}

WebhookCertReconciler reconciles the self-managed webhook CA and serving cert. It is used on non-OpenShift clusters where the service-ca operator is not available.

func (*WebhookCertReconciler) Reconcile

func (r *WebhookCertReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*WebhookCertReconciler) SetupWithManager

func (r *WebhookCertReconciler) SetupWithManager(mgr ctrl.Manager, createOrUpdate upsert.CreateOrUpdateProvider) error

Jump to

Keyboard shortcuts

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