certificate

package
v0.0.0-...-d424939 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(ctx context.Context, t *testing.T, clients *test.Clients, dnsNames []string) *v1alpha1.Certificate

CreateCertificate creates a Certificate with the given DNS names. The certificate is automatically cleaned up when the test ends or is interrupted.

func IsCertificateReady

func IsCertificateReady(c *v1alpha1.Certificate) (bool, error)

IsCertificateReady will check the status conditions of the certificate and return true if the certificate is ready.

func VerifyChallenges

func VerifyChallenges(ctx context.Context, t *testing.T, client *test.Clients, cert *v1alpha1.Certificate)

VerifyChallenges verifies that the given certificate has the correct number of HTTP01challenges and they contain valid data.

func WaitForCertificateSecret

func WaitForCertificateSecret(ctx context.Context, t *testing.T, client *test.Clients, cert *v1alpha1.Certificate, desc string) error

WaitForCertificateSecret polls the status of the Secret for the provided Certificate until it exists or the timeout is exceeded. It then validates its contents

func WaitForCertificateState

func WaitForCertificateState(ctx context.Context, client *test.NetworkingClients, name string, inState func(r *v1alpha1.Certificate) (bool, error), desc string) error

WaitForCertificateState polls the status of the Certificate called name from client every PollInterval until inState returns `true` indicating it is done, returns an error or PollTimeout. desc will be used to name the metric that is emitted to track how long it took for name to get into the state checked by inState.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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