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) SetupWithManager ¶
func (r *WebhookCertReconciler) SetupWithManager(mgr ctrl.Manager, createOrUpdate upsert.CreateOrUpdateProvider) error
Click to show internal directories.
Click to hide internal directories.