mapperwebhooks

package
v0.0.0-...-b5acc33 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Year               = 365 * 24 * time.Hour
	CertDirPath        = "/tmp/k8s-webhook-server/serving-certs"
	CertFilename       = "tls.crt"
	PrivateKeyFilename = "tls.key"
)

Variables

This section is empty.

Functions

func UpdateMutationWebHookCA

func UpdateMutationWebHookCA(ctx context.Context, webHookName string, ca []byte) error

func WriteCertToFiles

func WriteCertToFiles(bundle CertificateBundle) error

Types

type CertificateBundle

type CertificateBundle struct {
	CertPem       []byte
	PrivateKeyPem []byte
}

func GenerateSelfSignedCertificate

func GenerateSelfSignedCertificate(hostname string, namespace string) (CertificateBundle, error)

Jump to

Keyboard shortcuts

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