resources

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MakeSecret = MakeSecretInternal

MakeSecret synthesizes a Kubernetes Secret object with the keys specified by ServerKey, ServerCert, and CACert populated with a fresh certificate. This is mutable to make deterministic testing possible.

Functions

func CreateCerts

func CreateCerts(ctx context.Context, commonName string, notAfter time.Time) (serverKey, serverCert, caCert []byte, err error)

func MakeSecretInternal

func MakeSecretInternal(ctx context.Context, name, namespace string) (*corev1.Secret, error)

MakeSecretInternal is only public so MakeSecret can be restored in testing. Use MakeSecret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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