certs

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertFile       = "server-cert.pem"
	KeyFile        = "server-key.pem"
	DefaultCertDir = "/tmp/k8s-webhook-server/serving-certs"
)

Variables

This section is empty.

Functions

func EnsureWebhookSecret

func EnsureWebhookSecret(ctx context.Context, client ctrlclient.Client, secretName, secretNamespace, serviceName, deployName string, addOwnerRef bool, log *zap.SugaredLogger) error

func SaveToDirectory

func SaveToDirectory(ctx context.Context, secretName, secretNamespace, dirPath string, log *zap.SugaredLogger) error

save data from secret into given dir

func SetupCertSecret

func SetupCertSecret(ctx context.Context, secretName, secretNamespace, serviceName, deployName string, addOwnerRef bool, logger *zap.SugaredLogger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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