util

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateOnlyValidForDomains

func CertificateOnlyValidForDomains(cert *x509.Certificate, commonName string, dnsNames ...string) bool

func NewCertManagerACMECertificate

func NewCertManagerACMECertificate(name, secretName, issuerName string, issuerKind string, duration, renewBefore *metav1.Duration, ingressClass string, cn string, dnsNames ...string) *v1alpha1.Certificate

func NewCertManagerACMEIssuer

func NewCertManagerACMEIssuer(name, acmeURL, acmeEmail, acmePrivateKey string) *v1alpha1.Issuer

func NewCertManagerBasicCertificate

func NewCertManagerBasicCertificate(name, secretName, issuerName string, issuerKind string, duration, renewBefore *metav1.Duration) *v1alpha1.Certificate

func NewCertManagerCAClusterIssuer

func NewCertManagerCAClusterIssuer(name, secretName string) *v1alpha1.ClusterIssuer

func NewCertManagerCAIssuer

func NewCertManagerCAIssuer(name, secretName string) *v1alpha1.Issuer

func NewCertManagerSelfSignedIssuer

func NewCertManagerSelfSignedIssuer(name string) *v1alpha1.Issuer

func NewCertManagerVaultCertificate

func NewCertManagerVaultCertificate(name, secretName, issuerName string, issuerKind string, duration, renewBefore *metav1.Duration) *v1alpha1.Certificate

func NewCertManagerVaultIssuerAppRole

func NewCertManagerVaultIssuerAppRole(name, vaultURL, vaultPath, roleId, vaultSecretAppRole string, authPath string, caBundle []byte) *v1alpha1.Issuer

func NewCertManagerVaultIssuerToken

func NewCertManagerVaultIssuerToken(name, vaultURL, vaultPath, vaultSecretToken, authPath string, caBundle []byte) *v1alpha1.Issuer

func NewIngress

func NewIngress(name, secretName string, annotations map[string]string, dnsNames ...string) *extv1beta1.Ingress

func WaitForCRDToNotExist

func WaitForCRDToNotExist(client apiextcs.CustomResourceDefinitionInterface, name string) error

WaitForCRDToNotExist waits for the CRD with the given name to no longer exist.

func WaitForCertificateCondition

func WaitForCertificateCondition(client clientset.CertificateInterface, name string, condition v1alpha1.CertificateCondition, timeout time.Duration) error

WaitForCertificateCondition waits for the status of the named Certificate to contain a condition whose type and status matches the supplied one.

func WaitForCertificateEvent

func WaitForCertificateEvent(client kubernetes.Interface, cert *v1alpha1.Certificate, reason string, timeout time.Duration) error

WaitForCertificateEvent waits for an event on the named Certificate to contain an event reason matches the supplied one.

func WaitForCertificateToExist

func WaitForCertificateToExist(client clientset.CertificateInterface, name string, timeout time.Duration) error

WaitForCertificateToExist waits for the named certificate to exist

func WaitForClusterIssuerCondition

func WaitForClusterIssuerCondition(client clientset.ClusterIssuerInterface, name string, condition v1alpha1.IssuerCondition) error

WaitForClusterIssuerCondition waits for the status of the named issuer to contain a condition whose type and status matches the supplied one.

func WaitForIssuerCondition

func WaitForIssuerCondition(client clientset.IssuerInterface, name string, condition v1alpha1.IssuerCondition) error

WaitForIssuerCondition waits for the status of the named issuer to contain a condition whose type and status matches the supplied one.

func WaitForIssuerStatusFunc

func WaitForIssuerStatusFunc(client clientset.IssuerInterface, name string, fn func(*v1alpha1.Issuer) (bool, error)) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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