certs

package
v0.9.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopySecret

func CopySecret(ctx context.Context, c client.Client, relocation *rhsysenggithubiov1beta1.ClusterRelocation, scheme *runtime.Scheme,
	origSecretName string, origSecretNamespace string, destSecretName string, destSecretNamespace string, settings SecretCopySettings,
) (controllerutil.OperationResult, error)

copies a secret from one location to another

func GenerateTLSKeyPair

func GenerateTLSKeyPair(ctx context.Context, c client.Client, domain string, prefix string) (map[string][]byte, error)

func GetCertCommonName

func GetCertCommonName(TLSCertKey []byte) (string, error)

func ValidateSecretType added in v0.9.5

func ValidateSecretType(ctx context.Context, c client.Client, ref *corev1.SecretReference, desiredSecretType corev1.SecretType) error

Types

type SecretCopySettings

type SecretCopySettings struct {
	OwnOriginal                  bool
	OriginalOwnedByController    bool
	OwnDestination               bool
	DestinationOwnedByController bool
}

Jump to

Keyboard shortcuts

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