Documentation ¶
Index ¶
- func CleanCerts(client kubernetes.Interface, certclient certclient.Interface, ns string) error
- func WaitCertificateIssuedReady(client certclient.Interface, name string, ns string, timeout time.Duration) error
- func WatchCertificatesIssuedReady(ctx context.Context, client certclient.Interface, ns string) (<-chan Certificate, error)
- type Certificate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanCerts ¶
func CleanCerts(client kubernetes.Interface, certclient certclient.Interface, ns string) error
CleanCerts removes all certs and their associated secrets which hold a TLS certificate issued by cert-manager
func WaitCertificateIssuedReady ¶
func WaitCertificateIssuedReady(client certclient.Interface, name string, ns string, timeout time.Duration) error
WaitCertificateIssuedReady wait for a certificate issued by cert-manager until is ready or the timeout is reached
func WatchCertificatesIssuedReady ¶
func WatchCertificatesIssuedReady(ctx context.Context, client certclient.Interface, ns string) (<-chan Certificate, error)
WatchCertificatesIssuedReady starts watching for ready certificate in the given namespace. If the namespace is empty, it will watch the entire cluster. The caller can stop watching by cancelling the context.
Types ¶
type Certificate ¶
type Certificate struct { // Name certificate name Name string //Namespace certificate namespace Namespace string }
Certificate keeps some information related to a certificate issued by cert-manager
func GetIssuedReadyCertificates ¶
func GetIssuedReadyCertificates(client certclient.Interface, ns string) ([]Certificate, error)
GetIssuedReadyCertificates returns the current ready certificates in the given namespace
func ToCertificates ¶
func ToCertificates(services []*v1.Service) []Certificate
ToCertificates converts a list of services into a list of certificates. The certificate name is built from the application label of the service.
func (Certificate) String ¶
func (c Certificate) String() string
String returns the certificate information in a string format