secret

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOwnership

func CheckOwnership(ctx context.Context, Client client.Client, cert *certsv1.Certificate) (corev1.SecretList, error)

func CheckSecretIntegrity

func CheckSecretIntegrity(cert *certsv1.Certificate, secret *corev1.Secret) (bool, error)

func CreateSecret

func CreateSecret(req ctrl.Request, Client client.Client, ctx context.Context, cert *certsv1.Certificate, secretName string, crt, key []byte) error

create a secret for certificate and key storage

func DeleteSecrets

func DeleteSecrets(ctx context.Context, Client client.Client, secretList *corev1.SecretList) error

func EnsureSecretIntegrity

func EnsureSecretIntegrity(ctx context.Context, Client client.Client, cert *certsv1.Certificate, secret *corev1.Secret) error

func FindAndDeletePreviousSecrets

func FindAndDeletePreviousSecrets(ctx context.Context, Client client.Client, cert *certsv1.Certificate) error

func IsOwnerReference

func IsOwnerReference(cert *certsv1.Certificate, secret *corev1.Secret) bool

func UpdateSecret

func UpdateSecret(client client.Client, ctx context.Context, secret *corev1.Secret, cert, key []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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