webhooks

package
v1.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificates

func CreateCertificates(dnsNames []string, certsDirectory string, certFileName string, certKeyFileName string) ([]byte, error)

CreateCertificates creates the self-signed CA and server certs for the Admission Webhook server. The expiration time for the certificates is 2 years for the really unusual cases when manager is not restarted in 2 years. Returns CA certificate to further patch Mutating and Validating configs.

func GetWebhookServiceDNSNames

func GetWebhookServiceDNSNames(ctx context.Context, clientSet *kubernetes.Clientset) ([]string, error)

GetWebhookServiceDNSNames locates the manager's webhook service with the predefined labels and returns the list of DNS names for this service to use during the certificates creation.

func UpdateWebhookConfiguration

func UpdateWebhookConfiguration(ctx context.Context, clientSet *kubernetes.Clientset, caPemCert []byte) error

UpdateWebhookConfiguration patches the Kusk Gateway Mutating and Validating Admission configurations with the certificate authority certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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